New change
This commit is contained in:
parent
5594e1a1df
commit
b712c0f8b6
26
.github/workflows/build.yml
vendored
26
.github/workflows/build.yml
vendored
|
@ -1,25 +1,27 @@
|
||||||
on:
|
on:
|
||||||
|
# Trigger analysis when pushing in master or pull requests, and when creating
|
||||||
|
# a pull request.
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master # or the name of your main branch
|
- master
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
|
|
||||||
|
name: Main Workflow
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
sonarqube:
|
||||||
name: Build
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
# Disabling shallow clone is recommended for improving relevancy of reporting
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: sonarsource/sonarqube-scan-action@master
|
- name: SonarQube Scan
|
||||||
|
uses: sonarsource/sonarqube-scan-action@master
|
||||||
env:
|
env:
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
||||||
# If you wish to fail your job when the Quality Gate is red, uncomment the
|
- uses: sonarsource/sonarqube-quality-gate-action@master
|
||||||
# following lines. This would typically be used to fail a deployment.
|
timeout-minutes: 5
|
||||||
- uses: sonarsource/sonarqube-quality-gate-action@master
|
env:
|
||||||
timeout-minutes: 5
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
env:
|
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
Loading…
Reference in New Issue
Block a user