Skip to content

Quality

Quality #200

Workflow file for this run

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
- name: Knip
run: pnpm knip
- run: pnpm test --coverage --watch=false
- run: pnpm build
- uses: sonarsource/sonarqube-scan-action@v8
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}