📝 (dmk) [DSDK-581]: Generate markdown doc with typedoc #3313
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull Request Checks | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, edited] | |
branches-ignore: | |
- main | |
env: | |
FORCE_COLOR: "1" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref_name != 'develop' && github.ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
auto-assign: | |
name: Auto assign | |
runs-on: ubuntu-latest | |
steps: | |
- uses: toshimaru/auto-author-assign@v2.1.1 | |
danger: | |
name: Run Danger check | |
runs-on: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: LedgerHQ/device-sdk-ts/.github/actions/setup-toolchain-composite@develop | |
- name: Danger | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# Workaround when using custom runners | |
# https://github.com/danger/danger-js/issues/1374 | |
DANGER_GITHUB_API_BASE_URL: "https://api.github.com" | |
run: pnpm danger:ci | |
checks: | |
name: Run health check and unit tests | |
needs: [danger] | |
runs-on: ${{ github.event.pull_request.head.repo.fork == 'true' && 'ubuntu-latest' || 'ledgerhq-device-sdk' }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: LedgerHQ/device-sdk-ts/.github/actions/setup-toolchain-composite@develop | |
- name: Health check | |
id: health-check | |
run: pnpm health-check | |
- name: Tests | |
id: unit-tests | |
if: ${{ steps.health-check.conclusion == 'success' }} | |
run: pnpm test:coverage -- --max-warnings=0 | |
- uses: sonarsource/sonarqube-scan-action@v3 | |
if: ${{ steps.unit-tests.conclusion == 'success' && github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.fork == 'false' }} | |
env: | |
SONAR_TOKEN: ${{ secrets.GREEN_SONAR_TOKEN }} | |
SONAR_HOST_URL: ${{ secrets.GREEN_SONAR_HOST_URL }} |