@@ -2,15 +2,39 @@ name: Run tests
22on : [push]
33jobs :
44 test :
5- runs-on : macos-latest
5+ runs-on : macos-11
66 steps :
77 - name : Checkout
88 uses : actions/checkout@v2
99 - name : Resolve Dependency
1010 run : swift package update
11+ # - name: Generate XCode project
12+ # run: swift package generate-xcodeproj
1113 - name : Test
12- run : swift test --enable-code-coverage
13- - name : Covert Code Coverage
14- run : xcrun llvm-cov export -format=lcov .build/debug/TypedNotificationPackageTests.xctest/Contents/MacOS/TypedNotificationPackageTests -instr-profile=.build/debug/codecov/default.profdata > lcov.info
14+ uses : sersoft-gmbh/xcodebuild-action@v1
15+ with :
16+ # project: TypedNotification.xcodeproj
17+ spm-package : .
18+ # scheme: TypedNotification-Package
19+ scheme : TypedNotification
20+ derived-data-path : ./output
21+ destination : " OS=15.0,name=iPhone 13 Mini"
22+ action : test
23+ enable-code-coverage : true
24+ build-settings : ENABLE_TESTING_SEARCH_PATHS=YES
25+ - name : Generate Coverage Report
26+ uses : maxep/xcodebuild-lcov-action@0.1.0
27+ with :
28+ derived-data-path : ./output
29+ target : TypedNotificationTests
30+ output-file : ./output/coverage.lcov
31+ - name : Archive Artifacts
32+ uses : actions/upload-artifact@v2
33+ if : failure()
34+ with :
35+ path : ./output
1536 - name : Upload Codecov
1637 uses : codecov/codecov-action@v2
38+ with :
39+ directory : ./output
40+ verbose : true
0 commit comments