-
-
Notifications
You must be signed in to change notification settings - Fork 8
49 lines (45 loc) · 1.07 KB
/
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
43
44
45
46
47
48
49
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build_macos:
runs-on: macos-12
strategy:
matrix:
xcode:
- "14.2"
steps:
- uses: actions/checkout@v3
- name: Select Xcode ${{ matrix.xcode }}
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: Run make
run: env && make
- name: Get Test Coverage
run: |
set -- $(< percentage.txt)
echo "PERCENTAGE=${1}" >> $GITHUB_ENV
- name: Create Coverage Badge
uses: schneegans/[email protected]
with:
auth: ${{ secrets.GIST_UPDATE }}
gistID: ad941184ed256708952a2057fc5d7bb4
filename: swift-math-parser-coverage.json
label: Coverage
message: ${{ env.PERCENTAGE }}
color: success
build_ubuntu:
strategy:
matrix:
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Build
run: swift build
- name: Run tests
run: swift test