Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update versions of go and GitHub actions used in CI #20

Merged
merged 2 commits into from
Sep 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ jobs:
build-and-test:
strategy:
matrix:
go-version: ["1.17", "1.18", "1.19", "1.20"]
go-version: ["1.18", "1.19", "1.20", "1.21", "stable"]
os: [ubuntu-latest, macos-latest, windows-latest]
# Continue other jobs if one matrix job fails
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}

Expand All @@ -25,7 +25,8 @@ jobs:
# NOTE: only verify formatting on Linux and the latest go version.
# It only needs to happen once, and formatting
# is not consistent on Windows.
if: ${{ startsWith(matrix.os, 'ubuntu') && matrix.go-version == '1.20'}}
if:
${{ startsWith(matrix.os, 'ubuntu') && matrix.go-version == 'stable'}}

# NOTE: hacky bash `if` because gofumpt always returns 0 exit code
# @see https://github.com/mvdan/gofumpt/issues/114
Expand All @@ -44,8 +45,8 @@ jobs:
verify-table-of-contents:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "18"
- run: npm install
Expand Down