Skip to content

Quality

Quality #157

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
- 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 }}