-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (34 loc) · 825 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- run: swift test --enable-code-coverage
- uses: ./
name: Run swifty-code-coverage
with:
build-path: .build
target: SamplePackageTests.xctest
is-spm: true
output: "coverage/lcov.info"
output-artifact-name: "codecov-artifact"
- name: Upload to Codecov
run: |
bash <(curl https://codecov.io/bash) -f "coverage/*.info"
shell: bash
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}