Skip to content

Commit

Permalink
chore: update go version to go1.22.7
Browse files Browse the repository at this point in the history
Update go version to go1.22.7

Signed-off-by: crozzy <[email protected]>
  • Loading branch information
crozzy committed Sep 18, 2024
1 parent a6ebdd9 commit f96bfb4
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,31 @@ jobs:
- name: mdBook Build
run: mdbook build

current-go-version:
name: Get go.mod version
runs-on: ubuntu-latest
outputs:
version: ${{ steps.parse-mod.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v4
- id: parse-mod
run: |
go_mod_file="go.mod"
while IFS= read -r line; do if [[ $line =~ ^go\ (.*)$ ]]; then go_ver="${BASH_REMATCH[1]}"; fi; done < $go_mod_file
echo "version=$go_ver" >> $GITHUB_OUTPUT
tests:
needs: current-go-version
name: Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go:
- '1.22'
- '1.21'
- 'stable'
- 'oldstable'
- '${{ needs.current-go-version.outputs.version }}'
steps:
- name: Check for Previous Run
id: previous
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/quay/claircore

go 1.21.8
go 1.22.7

require (
github.com/Masterminds/semver v1.5.0
Expand Down
2 changes: 1 addition & 1 deletion toolkit/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/quay/claircore/toolkit

go 1.21.8
go 1.22.7

require github.com/google/go-cmp v0.6.0
2 changes: 1 addition & 1 deletion updater/driver/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/quay/claircore/updater/driver

go 1.21.8
go 1.22.7

require (
github.com/google/uuid v1.6.0
Expand Down

0 comments on commit f96bfb4

Please sign in to comment.