Skip to content

Commit 7c1f2a5

Browse files
authored
Add GitHub Actions build workflow
1 parent 87b0114 commit 7c1f2a5

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- main # or the name of your main branch
6+
jobs:
7+
build:
8+
name: Build
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
with:
13+
fetch-depth: 0
14+
- uses: sonarsource/sonarqube-scan-action@master
15+
env:
16+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
17+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
18+
# If you wish to fail your job when the Quality Gate is red, uncomment the
19+
# following lines. This would typically be used to fail a deployment.
20+
# - uses: sonarsource/sonarqube-quality-gate-action@master
21+
# timeout-minutes: 5
22+
# env:
23+
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)