File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 77 build :
88 name : Build and test
99 runs-on : macos-latest
10+ env :
11+ DERIVED_DATA_PATH : ' DerivedData'
1012 if : " !contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
1113 steps :
1214 - uses : actions/checkout@v2
@@ -21,11 +23,11 @@ jobs:
2123 ./Scripts/process.sh
2224 exit $?
2325 - name : Build and test
24- run : set -o pipefail && env NSUnbufferedIO=YES xcodebuild -scheme 'CryptomatorCryptoLib' -destination 'platform=macOS' -enableCodeCoverage YES clean test | xcpretty
26+ run : set -o pipefail && env NSUnbufferedIO=YES xcodebuild -scheme 'CryptomatorCryptoLib' -destination 'platform=macOS' -derivedDataPath $DERIVED_DATA_PATH - enableCodeCoverage YES clean test | xcpretty
2527 - name : Upload code coverage report
2628 run : |
2729 gem install slather
28- slather coverage -x -i '../../../Library/*' --scheme CryptomatorCryptoLib CryptomatorCryptoLib.xcodeproj
30+ slather coverage -x --build-directory $DERIVED_DATA_PATH --ignore "$DERIVED_DATA_PATH/SourcePackages/*" --scheme CryptomatorCryptoLib CryptomatorCryptoLib.xcodeproj
2931 bash <(curl -Ls https://coverage.codacy.com/get.sh)
3032 env :
3133 CODACY_PROJECT_TOKEN : ${{ secrets.CODACY_PROJECT_TOKEN }}
You can’t perform that action at this time.
0 commit comments