-
-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (36 loc) · 1017 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
38
39
40
41
42
name: Build
on:
push:
branches:
- main
pull_request:
branches:
- '*'
jobs:
build_on_mac:
runs-on: macos-latest
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Build
run: swift build -v
- name: Run tests
run: swift test --enable-code-coverage -v
- name: Prepare Code Coverage
run: xcrun llvm-cov export -format="lcov" .build/debug/ElvaPackageTests.xctest/Contents/MacOS/ElvaPackageTests -instr-profile .build/debug/codecov/default.profdata > info.lcov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
build_on_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Build
run: swift build -v
- name: Run tests
run: swift test --enable-test-discovery -v