Skip to content

Commit

Permalink
run tests with Go 1.22 on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Feb 15, 2024
1 parent 516dc9d commit d9aa2ec
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest, macos-14]
go: ['1.20', '1.21']
go: ['1.21', '1.22']
runs-on: ${{ matrix.os }}
steps:
- name: Install dependencies on macOS
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
Expand All @@ -86,7 +86,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
- name: Check Go sources are formatted
run: |
diffs="$(gofmt -d ./*.go ./cmd/actionlint/*.go ./scripts/*/*.go ./playground/*.go)"
Expand All @@ -111,7 +111,7 @@ jobs:
uses: docker/build-push-action@v5
with:
build-args: |
GOLANG_VER=1.21
GOLANG_VER=1.22
push: false
- name: Test Docker image
run: docker container run
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
if: ${{ matrix.language != 'go' }}
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
if: ${{ matrix.language == 'go' }}
- name: Build Go sources
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
- name: Check new release on GitHub
run: go run ./scripts/generate-popular-actions -d
- run: go generate
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/matcher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- run: ronn ./man/actionlint.1.ronn
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
- uses: goreleaser/goreleaser-action@v5
with:
version: latest
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
with:
platforms: linux/amd64,linux/arm64
build-args: |
GOLANG_VER=1.21
GOLANG_VER=1.22
ACTIONLINT_VER=${{ steps.tag.outputs.name }}
push: true
tags: |
Expand Down

0 comments on commit d9aa2ec

Please sign in to comment.