Quality #157
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: Quality | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| schedule: | |
| # Tous les lundis à 12h UTC | |
| - cron: '0 12 * * 1' | |
| jobs: | |
| test-build: | |
| name: Test & build | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node: [ 22 ] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| cache: 'pnpm' | |
| - run: pnpm install | |
| - name: Lint code | |
| run: pnpm lint | |
| - run: pnpm test --coverage --watch=false | |
| - run: pnpm build | |
| - name: SonarCloud Scan | |
| uses: sonarsource/sonarcloud-github-action@master | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SONAR_TOKEN: ${{ secrets. SONAR_TOKEN }} |