Merge branch 'main' into dev #130
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [ main, dev ] | |
| pull_request: | |
| branches: [ main, dev ] | |
| workflow_dispatch: | |
| env: | |
| node-version: 22 | |
| jobs: | |
| build: | |
| name: Lint and build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js 22 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: 'yarn' | |
| - name: Check Yarn version and install dependencies | |
| run: yarn install --immutable --inline-builds | |
| - name: Typecheck application | |
| run: yarn type-check | |
| - name: Lint application | |
| run: yarn lint | |
| - name: Build application | |
| run: yarn build | |
| tests: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js 22 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: 'yarn' | |
| - name: Check Yarn version and install dependencies | |
| run: yarn install --immutable --inline-builds | |
| - name: Run tests | |
| run: yarn test:coverage | |
| env: | |
| CI: true | |
| - name: SonarQube Cloud Scan | |
| if: always() | |
| uses: SonarSource/sonarqube-scan-action@v6 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |