File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This workflow will build a Swift project
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
3+
4+ name : XcodeTargets Unit Tests
5+
6+ on :
7+ push :
8+ branches : [ "main" ]
9+ pull_request :
10+ branches : [ "main" ]
11+
12+ jobs :
13+ build :
14+
15+ runs-on : macos-14
16+
17+ steps :
18+ - uses : actions/checkout@v4
19+ - uses : SwiftyLab/setup-swift@latest
20+ - name : Build
21+ run : swift build
22+ - name : Run tests
23+ run : swift test --enable-code-coverage
24+ - name : Install llvm-cov plugin
25+ run : brew install llvm
26+ - name : Generate coverage report
27+ run : llvm-cov export -format="lcov" .build/debug/XcodeTargetsPackageTests.xctest/Contents/MacOS/XcodeTargetsPackageTests -instr-profile .build/debug/codecov/default.profdata > info.lcov
28+ - name : Upload coverage reports to Codecov
29+ uses : codecov/codecov-action@v5
30+ with :
31+ token : ${{ secrets.CODECOV_TOKEN }}
32+ slug : michaelversus/XcodeTargets
Original file line number Diff line number Diff line change 11<p align =" center " >
22 <img src="https://img.shields.io/badge/Swift-6.0-red.svg" />
3- <img src="https://codecov.io/gh/michaelversus/XcodeTargets/branch/main/ graph/badge.svg?token=K8H49TQ6SZ "/>
3+ <img src="https://codecov.io/gh/michaelversus/XcodeTargets/graph/badge.svg?token=HH7KVALXSY "/>
44</p >
55
66<p align =" center " >
@@ -27,7 +27,6 @@ You can customize the behavior of **XcodeTargets** by creating a **.xcode-target
2727
2828Example:
2929``` json
30- ```json
3130 {
3231 "name" : " MyProject" ,
3332 "fileMembershipSets" : [
You can’t perform that action at this time.
0 commit comments