Skip to content

Commit 19cedbf

Browse files
authored
Merge pull request #7 from austinvazquez/update-ci
Update GitHub Actions packages and runner images
2 parents 7e40c5c + 2234b3c commit 19cedbf

2 files changed

Lines changed: 15 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
env:
1010
# Go version we currently use to build containerd across all CI.
1111
# Note: don't forget to update `Binaries` step, as it contains the matrix of all supported Go versions.
12-
GO_VERSION: "1.21.0"
12+
GO_VERSION: "1.22.8"
1313

1414
permissions: # added using https://github.com/step-security/secure-workflows
1515
contents: read
@@ -29,18 +29,18 @@ jobs:
2929

3030
strategy:
3131
matrix:
32-
os: [ubuntu-22.04, macos-12] # TODO: Add windows-2019
32+
os: [ubuntu-22.04, macos-13] # TODO: Add windows-2019
3333

3434
steps:
35-
- uses: actions/setup-go@v4
35+
- uses: actions/setup-go@v5
3636
with:
3737
go-version: ${{ env.GO_VERSION }}
3838
cache: false # see actions/setup-go#368
3939

40-
- uses: actions/checkout@v3
41-
- uses: golangci/golangci-lint-action@v3
40+
- uses: actions/checkout@v4
41+
- uses: golangci/golangci-lint-action@v6
4242
with:
43-
version: v1.52.2
43+
version: v1.61.0
4444
skip-cache: true
4545
args: --timeout=5m
4646

@@ -54,12 +54,12 @@ jobs:
5454
timeout-minutes: 5
5555

5656
steps:
57-
- uses: actions/setup-go@v4
57+
- uses: actions/setup-go@v5
5858
with:
5959
go-version: ${{ env.GO_VERSION }}
6060
cache: false # see actions/setup-go#368
6161

62-
- uses: actions/checkout@v3
62+
- uses: actions/checkout@v4
6363
with:
6464
path: src/github.com/containerd/plugin
6565
fetch-depth: 25
@@ -75,11 +75,11 @@ jobs:
7575
timeout-minutes: 5
7676

7777
steps:
78-
- uses: actions/checkout@v2
78+
- uses: actions/checkout@v4
7979
with:
8080
path: src/github.com/containerd/plugin
8181

82-
- uses: actions/setup-go@v2
82+
- uses: actions/setup-go@v5
8383
with:
8484
go-version: ${{ env.GO_VERSION }}
8585

.golangci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
linters:
22
enable:
3-
- exportloopref # Checks for pointers to enclosing loop variables
3+
- copyloopvar
44
- gofmt
55
- goimports
66
- gosec
@@ -12,14 +12,16 @@ linters:
1212
- tenv # Detects using os.Setenv instead of t.Setenv since Go 1.17
1313
- unconvert
1414
- unused
15-
- vet
15+
- govet
1616
- dupword # Checks for duplicate words in the source code
1717
disable:
1818
- errcheck
1919

2020
run:
2121
timeout: 5m
22-
skip-dirs:
22+
23+
issues:
24+
exclude-dirs:
2325
- api
2426
- cluster
2527
- design

0 commit comments

Comments
 (0)