Skip to content

Commit

Permalink
Merge pull request #22 from AntaresSimulatorTeam/fix/sonar_testCoverage
Browse files Browse the repository at this point in the history
Fix/sonar test coverage
  • Loading branch information
vargastat authored Dec 5, 2024
2 parents 69eb1c6 + c5b2dd1 commit b47059d
Show file tree
Hide file tree
Showing 6 changed files with 3,352 additions and 4,565 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build

on:
push:
branches:
- develop
pull_request:
types: [opened, synchronize, reopened]

jobs:
sonarcloud:
name: SonarQube Cloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- name: Install dependencies
run: npm install

- name: Run tests and generate coverage
run: npm run coverage

- name: SonarQube Cloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ dist-ssr
*.njsproj
*.sln
*.sw?

# Coverage couverture
coverage/
Loading

0 comments on commit b47059d

Please sign in to comment.