File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 7
7
build :
8
8
name : Build and test
9
9
runs-on : macos-latest
10
+ env :
11
+ DERIVED_DATA_PATH : ' DerivedData'
10
12
if : " !contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
11
13
steps :
12
14
- uses : actions/checkout@v2
@@ -21,11 +23,11 @@ jobs:
21
23
./Scripts/process.sh
22
24
exit $?
23
25
- 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
25
27
- name : Upload code coverage report
26
28
run : |
27
29
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
29
31
bash <(curl -Ls https://coverage.codacy.com/get.sh)
30
32
env :
31
33
CODACY_PROJECT_TOKEN : ${{ secrets.CODACY_PROJECT_TOKEN }}
You can’t perform that action at this time.
0 commit comments