-
Notifications
You must be signed in to change notification settings - Fork 4
61 lines (56 loc) · 1.49 KB
/
test.yml
File metadata and controls
61 lines (56 loc) · 1.49 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
52
53
54
55
56
57
58
59
60
61
name: test
on:
push:
schedule:
- cron: '0 1 */1 * *'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Run Common Setup
uses: ./.github/actions/setup
- name: golangci-lint
uses: golangci/golangci-lint-action@v8
with:
verify: false
- run: just lint
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Run Common Setup
uses: ./.github/actions/setup
- run: just test
test-integration:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Run Common Setup
uses: ./.github/actions/setup
- run: just test-integration
test-cross-platform:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch: ['aarch64', 'arm', 'i686', 'loongarch64', 'riscv64', 'x86_64']
test: ['test', 'build', 'test-cpu-detection', 'test-os-detection']
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Run Common Setup
uses: ./.github/actions/setup
- name: Install Qemu
run: sudo apt-get update && sudo apt-get install -y qemu-user
- name: ${{ matrix.test }} on ${{ matrix.arch }}
run: just ${{ matrix.arch }} ${{ matrix.test }}