Skip to content

Commit

Permalink
Update GitHub actions CI workflow
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
austinvazquez committed Oct 25, 2022
1 parent 325f9b6 commit 1c3fa33
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ jobs:
#
project:
name: Project Checks
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
timeout-minutes: 5

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
path: src/github.com/containerd/continuity
fetch-depth: 100

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.17.x
go-version: 1.18.x

- uses: containerd/project-checks@v1
with:
Expand All @@ -39,13 +39,13 @@ jobs:

strategy:
matrix:
os: [ubuntu-18.04, macos-10.15, windows-2019]
os: [ubuntu-22.04, macos-10.15, windows-2019]

steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.17.x
go-version: 1.18.x

- name: Git line endings
shell: bash
Expand All @@ -54,13 +54,13 @@ jobs:
git config --global core.eol lf
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: src/github.com/containerd/continuity
fetch-depth: 25

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

- name: Lint
shell: bash
Expand All @@ -87,7 +87,7 @@ jobs:

cross:
name: Cross-compile
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
timeout-minutes: 10
needs: [project]

Expand All @@ -99,15 +99,15 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.18

- name: Setup Go binary path
shell: bash
run: |
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: src/github.com/containerd/continuity

Expand Down
2 changes: 0 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
linters:
enable:
- structcheck
- varcheck
- staticcheck
- unconvert
- gofmt
Expand Down

0 comments on commit 1c3fa33

Please sign in to comment.