-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (44 loc) · 1.16 KB
/
ci.yml
File metadata and controls
51 lines (44 loc) · 1.16 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
build-and-test:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Show Xcode version
run: |
xcodebuild -version
xcode-select -p
- name: Run unit tests (with coverage)
env:
SCHEME: singularity-CI
run: |
chmod +x ./ci-run-tests.sh
./ci-run-tests.sh
- name: Upload xcresult bundle
if: always()
uses: actions/upload-artifact@v4
with:
name: xcresult
path: build/TestResults.xcresult
- name: Upload JUnit report
if: always()
uses: actions/upload-artifact@v4
with:
name: junit
path: build/junit.xml
- name: Upload coverage to Codecov
if: always()
uses: codecov/codecov-action@v5
with:
files: build/TestResults.xcresult,**/*.xcresult
flags: macos
slug: ${{ github.repository }}
fail_ci_if_error: true
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}