77
88jobs :
99 lint :
10- runs-on : ubuntu-latest
11- steps :
12- - name : Checkout code
13- uses : actions/checkout@v5
14- with :
15- fetch-depth : 0
16- - name : Install Just
17- uses : extractions/setup-just@v3
18- env :
19- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
20- - name : Setup Go
21- uses : actions/setup-go@v6
22- with :
23- go-version-file : " go.mod"
24- - name : golangci-lint
25- uses : golangci/golangci-lint-action@v8
26- with :
27- verify : false
28- - run : just lint
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout code
13+ uses : actions/checkout@v6
14+ with :
15+ fetch-depth : 0
16+ - name : Run Common Setup
17+ uses : ./.github/actions/setup
18+ - name : golangci-lint
19+ uses : golangci/golangci-lint-action@v8
20+ with :
21+ verify : false
22+ - run : just lint
2923
3024 test :
3125 runs-on : ubuntu-latest
3226 steps :
3327 - name : Checkout code
34- uses : actions/checkout@v5
28+ uses : actions/checkout@v6
3529 with :
3630 fetch-depth : 0
37- - name : Install Just
38- uses : extractions/setup-just@v3
39- env :
40- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41- - name : Setup Go
42- uses : actions/setup-go@v6
43- with :
44- go-version-file : " go.mod"
31+ - name : Run Common Setup
32+ uses : ./.github/actions/setup
4533 - run : just test
4634
4735 test-integration :
4836 runs-on : ubuntu-latest
4937 steps :
5038 - name : Checkout code
51- uses : actions/checkout@v5
39+ uses : actions/checkout@v6
5240 with :
5341 fetch-depth : 0
54- - name : Install Just
55- uses : extractions/setup-just@v3
56- env :
57- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42+ - name : Run Common Setup
43+ uses : ./.github/actions/setup
5844 - run : just test-integration
5945
6046 test-cross-platform :
@@ -66,18 +52,10 @@ jobs:
6652 test : ['test', 'build', 'test-cpu-detection', 'test-os-detection']
6753 steps :
6854 - name : Checkout code
69- uses : actions/checkout@v5
70- - name : Install Just
71- uses : extractions/setup-just@v3
72- env :
73- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
74- - name : Setup Go
75- uses : actions/setup-go@v6
76- with :
77- go-version-file : " go.mod"
78- - name : Update APT
79- run : sudo apt-get update
55+ uses : actions/checkout@v6
56+ - name : Run Common Setup
57+ uses : ./.github/actions/setup
8058 - name : Install Qemu
81- run : sudo apt-get install qemu-user
59+ run : sudo apt-get update && sudo apt-get install -y qemu-user
8260 - name : ${{ matrix.test }} on ${{ matrix.arch }}
8361 run : just ${{ matrix.arch }} ${{ matrix.test }}
0 commit comments