Skip to content

Commit b6bc255

Browse files
authored
Create coverage.yml
1 parent 2e89d41 commit b6bc255

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/coverage.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
on:
2+
# Trigger analysis when pushing in master or pull requests, and when creating
3+
# a pull request.
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
name: Main Workflow
10+
jobs:
11+
sonarcloud:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
# Disabling shallow clone is recommended for improving relevancy of reporting
17+
fetch-depth: 0
18+
- name: SonarCloud Scan
19+
uses: sonarsource/sonarcloud-github-action@master
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)