Skip to content

Commit

Permalink
build: update workflow to run sonar once
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackfaded committed Nov 18, 2024
1 parent 5352fe0 commit 12a380f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/lint_test_sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,23 @@ jobs:
- name: Run Format Check
run: npm run format:check
- name: Run Tests
run: npm run test

sonar:
needs: [test]
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install dependencies
run: npm ci
- name: Run Tests with coverage
run: npm run test:coverage
- name: Run SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
Expand Down

0 comments on commit 12a380f

Please sign in to comment.