name: CI on: push: branches: [develop, main] pull_request: branches: [develop, main] jobs: quality: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '20' cache: 'npm' - name: Install dependencies run: npm ci --ignore-scripts - name: TypeScript check run: npm run typecheck - name: ESLint run: npm run lint - name: Unit tests + coverage run: npm run test:coverage - name: Security audit run: npm audit --audit-level=high - name: SonarQube analysis if: ${{ secrets.SONAR_TOKEN != '' }} uses: sonarsource/sonarqube-scan-action@master env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}