diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5f76227..7799b6b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,8 +23,19 @@ jobs: - name: Install dependencies (with dev) run: npm ci --include=dev - - name: Run tests - run: npm run test + - name: Run test and coverage + run: npm run test -- --coverage + + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + with: + args: > + -Dsonar.organization=louisgrasset + -Dsonar.projectKey=touitomamout + -Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info commitlint: name: "Commitlint Validation" diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index e93b799..cb9a67c 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -42,7 +42,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL