Skip to content

Commit 8830a57

Browse files
authored
Create main.yml
1 parent 2e0b672 commit 8830a57

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/main.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build
2+
on:
3+
# Trigger analysis when pushing to your main branches, and when creating a pull request.
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
10+
jobs:
11+
sonarqube:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
# Disabling shallow clones is recommended for improving the relevancy of reporting
17+
fetch-depth: 0
18+
- name: SonarQube Scan
19+
uses: sonarsource/sonarqube-scan-action@master
20+
env:
21+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
22+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

0 commit comments

Comments
 (0)