Skip to content

Commit 44ab40f

Browse files
author
Michalis Karagiorgos
committed
update Readme and add workflows
1 parent 614b94e commit 44ab40f

2 files changed

Lines changed: 33 additions & 2 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

2828
Example:
2929
```json
30-
```json
3130
{
3231
"name": "MyProject",
3332
"fileMembershipSets": [

0 commit comments

Comments
 (0)