-
-
Notifications
You must be signed in to change notification settings - Fork 524
90 lines (87 loc) · 2.3 KB
/
unit_tests.yaml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: "Build and Unit test"
on:
pull_request_target:
env:
HOMEBREW_NO_INSTALL_FROM_API:
jobs:
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: "${{ github.event.pull_request.head.sha }}"
- name: install dependencies
uses: ./.github/actions/install-dependencies
- name: Lint
run: make lint
- name: "Test arm64 build"
run: GOARCH=arm64 make build
- name: "Test amd64 build"
run: make build
- name: Run tests
uses: nick-fields/retry/@v3
with:
max_attempts: 3
timeout_minutes: 12
command: make check-unit
windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: "${{ github.event.pull_request.head.sha }}"
- name: install dependencies
uses: ./.github/actions/install-dependencies
- name: Build
run: make build
- name: Lint
run: make lint
- name: Run tests
uses: nick-fields/retry/@v3
with:
max_attempts: 3
timeout_minutes: 12
command: |
make check-unit
linux-amd64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: "${{ github.event.pull_request.head.sha }}"
- name: install dependencies
uses: ./.github/actions/install-dependencies
- name: Lint
run: make lint
- name: "Test amd64 build"
run: make build
- name: Run tests
uses: nick-fields/retry/@v3
with:
max_attempts: 3
timeout_minutes: 10
command: |
make check-unit
linux-arm64:
runs-on: ubuntu-arm64
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: "${{ github.event.pull_request.head.sha }}"
- name: install dependencies
uses: ./.github/actions/install-dependencies
- name: Lint
run: make lint
- name: "Test arm64 build"
run: CC=aarch64-linux-gnu-gcc make build
- name: Run tests
uses: nick-fields/retry/@v3
with:
max_attempts: 3
timeout_minutes: 10
command: |
make check-unit