Skip to content

Commit 2bd4573

Browse files
dveedenlance6716
andauthored
CI: Update ci workflow (#868)
* CI: Update ci workflow * fixup * Update golangci-lint-action version * Looks like Ubuntu 24.04 isn't ready yet --------- Co-authored-by: lance6716 <lance6716@gmail.com>
1 parent 007f306 commit 2bd4573

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/ci.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
test:
66
strategy:
77
matrix:
8-
go: [ "1.21", "1.20", "1.19" ]
8+
go: [ "1.22", "1.21" ]
99
os: [ ubuntu-22.04, ubuntu-20.04 ]
1010
name: Tests Go ${{ matrix.go }} on ${{ matrix.os }} # This name is used in main branch protection rules
1111
runs-on: ${{ matrix.os }}
@@ -31,11 +31,11 @@ jobs:
3131
run: |
3232
sudo apt-get install -y make gcc
3333
- name: Install Go
34-
uses: actions/setup-go@v4
34+
uses: actions/setup-go@v5
3535
with:
3636
go-version: ${{ matrix.go }}
3737
- name: Checkout code
38-
uses: actions/checkout@v1
38+
uses: actions/checkout@v4
3939
- name: Run tests
4040
run: |
4141
# separate test to avoid RESET MASTER conflict
@@ -46,9 +46,9 @@ jobs:
4646
name: golangci
4747
runs-on: ubuntu-latest
4848
steps:
49-
- uses: actions/checkout@v2
49+
- uses: actions/checkout@v4
5050
- name: golangci-lint
51-
uses: golangci/golangci-lint-action@v2
51+
uses: golangci/golangci-lint-action@v6
5252
with:
5353
version: latest
5454
args: --timeout=3m
@@ -65,10 +65,10 @@ jobs:
6565
run: |
6666
sudo apt-get install -y make gcc
6767
- name: Install Go
68-
uses: actions/setup-go@v2
68+
uses: actions/setup-go@v5
6969
with:
70-
go-version: "1.20"
70+
go-version: "1.22"
7171
- name: Checkout code
72-
uses: actions/checkout@v1
72+
uses: actions/checkout@v4
7373
- name: Build on ${{ matrix.os }}/${{ matrix.arch }}
7474
run: GOARCH=${{ matrix.arch }} GOOS=${{ matrix.os }} go build ./...

0 commit comments

Comments
 (0)