-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (40 loc) · 1.1 KB
/
build_test.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
50
name: "CI"
on:
push:
branches:
- 'legacy/**'
jobs:
test:
name: "Build & Test"
runs-on: ubuntu-latest
strategy:
fail-fast: true
concurrency:
group: pactswiftmockserver-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: fwal/setup-swift@v1
- name: "Check swift version"
run: swift --version
- name: "⬇️ Checkout repository"
uses: actions/checkout@v4
- name: "Install Protoc"
uses: arduino/setup-protoc@v1
- name: "♼ Cache rust binaries"
uses: actions/cache@v3
with:
path: |
pact-reference
key: build-${{ runner.os }}-rust-bin-${{ hashFiles('**/libpact_ffi.version') }}
restore-keys: |
build-${{ runner.os }}-rust-bin
build-${{ runner.os }}-rust-
- name: "⚗️ Build and Test"
run: |
Support/build_test_linux
- name: "Upload code coverage"
id: codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true