Skip to content

Commit f7662a2

Browse files
authored
Merge pull request #968 from mmorel-35/patch-1
fix workflow warnings
2 parents 2f0faf6 + 6b78761 commit f7662a2

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/test.yaml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,28 @@ jobs:
1212
name: Lint
1313
runs-on: ubuntu-latest
1414
steps:
15+
- uses: actions/checkout@v4
1516
- name: setup go
1617
uses: actions/setup-go@v4
1718
with:
18-
go-version: ${{ env.GO_VERSION }}
19-
- uses: actions/checkout@v4
19+
go-version-file: go.mod
2020
- uses: ibiqlik/action-yamllint@v3
2121
with:
2222
format: auto
2323
- uses: golangci/golangci-lint-action@v3
2424
with:
2525
args: -v
26+
skip-cache: true
2627
build:
2728
name: Build all linux architectures
2829
needs: lint
2930
runs-on: ubuntu-latest
3031
steps:
32+
- uses: actions/checkout@v4
3133
- name: setup go
3234
uses: actions/setup-go@v4
3335
with:
34-
go-version: ${{ env.GO_VERSION }}
35-
- uses: actions/checkout@v4
36-
36+
go-version-file: go.mod
3737
- name: Build on all supported architectures
3838
run: |
3939
set -e
@@ -53,16 +53,15 @@ jobs:
5353
sudo apt-get install linux-modules-extra-$(uname -r)
5454
- name: Install nftables
5555
run: sudo apt-get install nftables
56-
56+
- uses: actions/checkout@v4
5757
- name: setup go
5858
uses: actions/setup-go@v4
5959
with:
60-
go-version: ${{ env.GO_VERSION }}
60+
go-version-file: go.mod
6161
- name: Set up Go for root
6262
run: |
6363
sudo ln -sf `which go` `sudo which go` || true
6464
sudo go version
65-
- uses: actions/checkout@v4
6665
6766
- name: Install test binaries
6867
run: |
@@ -85,10 +84,10 @@ jobs:
8584
needs: build
8685
runs-on: windows-latest
8786
steps:
87+
- uses: actions/checkout@v4
8888
- name: setup go
8989
uses: actions/setup-go@v4
9090
with:
91-
go-version: ${{ env.GO_VERSION }}
92-
- uses: actions/checkout@v4
91+
go-version-file: go.mod
9392
- name: test
9493
run: bash ./test_windows.sh

0 commit comments

Comments
 (0)