Skip to content

Commit 1c3fa33

Browse files
committed
Update GitHub actions CI workflow
Updates actions runner OS from Ubuntu 18.04 to Ubuntu 22.04. Updates actions/checkout from v2 to v3. Updates go compiler from 1.17 to 1.18. Updates golangci/golangci-lint from v1.45.2 to v1.50.1. Signed-off-by: Austin Vazquez <[email protected]>
1 parent 325f9b6 commit 1c3fa33

2 files changed

Lines changed: 10 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ jobs:
1313
#
1414
project:
1515
name: Project Checks
16-
runs-on: ubuntu-18.04
16+
runs-on: ubuntu-22.04
1717
timeout-minutes: 5
1818

1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v3
2121
with:
2222
path: src/github.com/containerd/continuity
2323
fetch-depth: 100
2424

2525
- name: Set up Go
2626
uses: actions/setup-go@v3
2727
with:
28-
go-version: 1.17.x
28+
go-version: 1.18.x
2929

3030
- uses: containerd/project-checks@v1
3131
with:
@@ -39,13 +39,13 @@ jobs:
3939

4040
strategy:
4141
matrix:
42-
os: [ubuntu-18.04, macos-10.15, windows-2019]
42+
os: [ubuntu-22.04, macos-10.15, windows-2019]
4343

4444
steps:
4545
- name: Set up Go
4646
uses: actions/setup-go@v3
4747
with:
48-
go-version: 1.17.x
48+
go-version: 1.18.x
4949

5050
- name: Git line endings
5151
shell: bash
@@ -54,13 +54,13 @@ jobs:
5454
git config --global core.eol lf
5555
5656
- name: Check out code
57-
uses: actions/checkout@v2
57+
uses: actions/checkout@v3
5858
with:
5959
path: src/github.com/containerd/continuity
6060
fetch-depth: 25
6161

6262
- name: Dependencies
63-
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.45.2
63+
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.50.1
6464

6565
- name: Lint
6666
shell: bash
@@ -87,7 +87,7 @@ jobs:
8787

8888
cross:
8989
name: Cross-compile
90-
runs-on: ubuntu-18.04
90+
runs-on: ubuntu-22.04
9191
timeout-minutes: 10
9292
needs: [project]
9393

@@ -99,15 +99,15 @@ jobs:
9999
- name: Set up Go
100100
uses: actions/setup-go@v3
101101
with:
102-
go-version: 1.17
102+
go-version: 1.18
103103

104104
- name: Setup Go binary path
105105
shell: bash
106106
run: |
107107
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
108108
109109
- name: Check out code
110-
uses: actions/checkout@v2
110+
uses: actions/checkout@v3
111111
with:
112112
path: src/github.com/containerd/continuity
113113

.golangci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
linters:
22
enable:
3-
- structcheck
4-
- varcheck
53
- staticcheck
64
- unconvert
75
- gofmt

0 commit comments

Comments
 (0)