Skip to content

Commit

Permalink
Use Go 1.22 in GitHub Actions
Browse files Browse the repository at this point in the history
Use latest Go version `1.22` for any Go related GitHub Action.
  • Loading branch information
HeavyWombat committed Jul 29, 2024
1 parent 2c9c3a5 commit 51004c5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ inputs:
go-version:
description: "The Go version to download (if necessary) and use. Supports semver spec and ranges. Be sure to enclose this option in single quotation marks."
required: false
default: "1.21"
default: "1.22.x"
runs:
using: composite
steps:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
inputs:
release:
description: 'Desired tag'
required: true
required: true
tags:
description: 'Previous tag'
required: true
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Generate and upload release.yaml
env:
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -67,4 +67,3 @@ jobs:
-a sha=${{ github.sha }} \
-a run_id=${{ github.run_id }} \
-a run_attempt=${{ github.run_attempt }}
2 changes: 1 addition & 1 deletion .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21.x'
go-version: 1.22.x
check-latest: true

- name: Run gosec
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
with:
go-version: '1.21.x'
go-version: 1.22.x
- name: test-unit
run: make test-unit
integration:
Expand All @@ -28,7 +28,7 @@ jobs:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
with:
go-version: '1.21.x'
go-version: 1.22.x
- name: test-integration
run: make test-integration

Expand Down

0 comments on commit 51004c5

Please sign in to comment.