forked from AcademySoftwareFoundation/OpenCue
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate SonarCloud pipeline to Github Actions. (AcademySoftwareFounda…
- Loading branch information
Showing
3 changed files
with
50 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: OpenCue SonarCloud Pipeline | ||
|
||
# Trigger this pipeline on new commits to master. | ||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
analyze_python: | ||
runs-on: ubuntu-latest | ||
container: aswf/ci-opencue:2020 | ||
name: Analyze Python Components | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
# Fetch all Git history, otherwise the current version number will | ||
# not be correctly calculated. | ||
fetch-depth: 0 | ||
|
||
- name: Generate coverage report | ||
run: ci/python_coverage_report.sh | ||
|
||
- name: Analyze and send to SonarCloud | ||
uses: sonarsource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
|
||
analyze_cuebot: | ||
runs-on: ubuntu-latest | ||
container: aswf/ci-opencue:2020 | ||
name: Analyze Cuebot | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
# Fetch all Git history, otherwise the current version number will | ||
# not be correctly calculated. | ||
fetch-depth: 0 | ||
|
||
- name: Analyze and send to SonarCloud | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
run: | | ||
chown -R aswfuser:aswfgroup . | ||
su -c "cd cuebot && ./gradlew jacocoTestReport sonarqube -Dsonar.login=$(SONAR_TOKEN)" aswfuser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.