Skip to content

Commit

Permalink
feat: add test coverage to sonarcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Feb 1, 2024
1 parent 83a91a7 commit 25b96a4
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install dependencies
run: npm install
- name: Test and coverage
run: npm run test --coverage
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
SONAR_TOKEN: ${{secrets.SONARCLOUD_TOKEN}}

0 comments on commit 25b96a4

Please sign in to comment.