-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from wwt/codecov
Replaces SonarCloud analysis with CodeCov in the pipeline. Bypassed SonarCloud checks as this removes SonarCloud.
- Loading branch information
Showing
9 changed files
with
36 additions
and
134 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,27 @@ | ||
codecov: | ||
require_ci_to_pass: yes | ||
|
||
coverage: | ||
precision: 2 | ||
round: down | ||
range: "70...100" | ||
|
||
parsers: | ||
gcov: | ||
branch_detection: | ||
conditional: yes | ||
loop: yes | ||
method: no | ||
macro: no | ||
|
||
ignore: | ||
- "Tests/" | ||
- "SwiftCurrentLint/" | ||
- "Sources/SwiftCurrent/Deprecations/" | ||
- "SwiftCurrentExample/SwiftCurrentExampleTests/" | ||
- "SwiftCurrentExample/SwiftCurrent_UIKitTests/" | ||
|
||
comment: | ||
layout: "reach,diff,flags,files,footer" | ||
behavior: default | ||
require_changes: no |
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 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 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 |
---|---|---|
|
@@ -9,40 +9,17 @@ jobs: | |
- uses: actions/checkout@v2 | ||
- name: Run TESTS | ||
run: bundle exec fastlane unit_test | ||
- name: Generate SonarCloud Friendly Coverage Report | ||
run: ./xccov-to-sonarqube-generic.sh ~/Library/Developer/Xcode/DerivedData/Logs/Test/*.xcresult > sq-generic.xml | ||
- name: Upload Coverage Report | ||
uses: actions/upload-artifact@v2 | ||
- name: Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
name: sq-generic.xml | ||
path: sq-generic.xml | ||
retention-days: 1 | ||
fail_ci_if_error: true | ||
- name: Upload Test logs | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: test-logs | ||
path: ~/Library/Logs/scan | ||
retention-days: 90 | ||
sonar_scan: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Download Coverage Report | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: sq-generic.xml | ||
path: artifacts | ||
- name: Rename Paths in Coverage | ||
run: sed 's+/Users/runner/work/SwiftCurrent/SwiftCurrent/++g' artifacts/sq-generic.xml > sq-generic.xml | ||
- name: SonarCloud Scan | ||
uses: sonarsource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
|
||
build_for_package_managers: | ||
needs: test | ||
|
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 |
---|---|---|
|
@@ -9,40 +9,17 @@ jobs: | |
- uses: actions/checkout@v2 | ||
- name: Run TESTS | ||
run: bundle exec fastlane unit_test | ||
- name: Generate SonarCloud Friendly Coverage Report | ||
run: ./xccov-to-sonarqube-generic.sh ~/Library/Developer/Xcode/DerivedData/Logs/Test/*.xcresult > sq-generic.xml | ||
- name: Upload Coverage Report | ||
uses: actions/upload-artifact@v2 | ||
- name: Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
name: sq-generic.xml | ||
path: sq-generic.xml | ||
retention-days: 1 | ||
fail_ci_if_error: true | ||
- name: Upload Test logs | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: test-logs | ||
path: ~/Library/Logs/scan | ||
retention-days: 90 | ||
sonar_scan: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Download Coverage Report | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: sq-generic.xml | ||
path: artifacts | ||
- name: Rename Paths in Coverage | ||
run: sed 's+/Users/runner/work/SwiftCurrent/SwiftCurrent/++g' artifacts/sq-generic.xml > sq-generic.xml | ||
- name: SonarCloud Scan | ||
uses: sonarsource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
|
||
build_for_package_managers: | ||
needs: test | ||
|
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 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.
This file was deleted.
Oops, something went wrong.