File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 tags :
55 - " v*.*.*-beta"
66jobs :
7- test :
7+ beta-release :
88 runs-on : macos-latest
99 steps :
1010 - name : Checkout
Original file line number Diff line number Diff line change 44 tags :
55 - " v[0-9]+.[0-9]+.[0-9]+"
66jobs :
7- test :
7+ release :
88 runs-on : macos-latest
99 steps :
1010 - name : Checkout
Original file line number Diff line number Diff line change @@ -2,15 +2,38 @@ 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+ derived-data-path : ./output
20+ destination : " OS=15.0,name=iPhone 13 Mini"
21+ action : test
22+ enable-code-coverage : true
23+ build-settings : ENABLE_TESTING_SEARCH_PATHS=YES
24+ - name : Generate Coverage Report
25+ uses : maxep/xcodebuild-lcov-action@0.1.0
26+ with :
27+ derived-data-path : ./output
28+ target : TypedNotificationTests
29+ output-file : ./output/coverage.lcov
30+ - name : Archive Artifacts
31+ uses : actions/upload-artifact@v2
32+ if : failure()
33+ with :
34+ path : ./output
1535 - name : Upload Codecov
1636 uses : codecov/codecov-action@v2
37+ with :
38+ directory : ./output
39+ verbose : true
Original file line number Diff line number Diff line change @@ -39,8 +39,10 @@ Packages/
3939Package.pins
4040Package.resolved
4141.build /
42+ .output /
4243.swiftpm
4344/build
45+ TypedNotification.xcodeproj
4446
4547# CocoaPods
4648#
Original file line number Diff line number Diff line change 33[ ![ Swift Package Manager] ( https://img.shields.io/badge/SwiftPM-Compatiable-brightgreen.svg )] ( https://swift.org/package-manager/ )
44[ ![ release] ( https://img.shields.io/github/release/dbi1463/typed-notification/all.svg )] ( https://github.com/dbi1463/typed-notification/releases )
55[ ![ MIT license] ( https://img.shields.io/badge/License-MIT-blue.svg )] ( https://lbesson.mit-license.org/ )
6+ [ ![ codecov] ( https://codecov.io/gh/dbi1463/typed-notification/branch/develop/graph/badge.svg?token=5hEk4BfOif )] ( https://codecov.io/gh/dbi1463/typed-notification )
67
78A type-safe way to receive notifications.
89
You can’t perform that action at this time.
0 commit comments