Skip to content

Commit

Permalink
chore: migrate to go 1.24
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone committed Feb 24, 2025
1 parent 3306535 commit 62b32a7
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fetch-depth: 2
- uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version: '1.24'
- name: Run coverage
run: go test -coverprofile=coverage.out -covermode=count ./...
- name: Upload coverage to Codecov
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version: '1.24'
- name: Generate code
run: go run ./cmd/scw-doc-gen
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.22
go-version: 1.24
- name: Run Acceptance Tests
run: go test -v ./internal/namespaces/${{ matrix.products }}/... -timeout=4h
env:
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.22
go-version: 1.24
- name: Run Sweepers
run: go run -v ./cmd/scw-sweeper
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version: '1.24'

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
Expand All @@ -38,7 +38,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version: '1.24'
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ jobs:
os-tests:
strategy:
matrix:
go-version: [1.22.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
Expand All @@ -24,18 +23,14 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
go-version: '1.24'
- name: Run unit tests
run: go test ./...
- name: Execute main binary # Test the runtime for potential panics.
run: go run cmd/scw/main.go -h

build-tests:
strategy:
matrix:
go-version: [1.22.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
runs-on: ubuntu-latest
steps:
# Checkout should always be before setup-go to ensure caching is working
- name: Checkout
Expand All @@ -45,7 +40,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
go-version: '1.24'
- name: Build binaries
run: ./scripts/build.sh
- name: Print binaries size
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ on:

jobs:
build-and-test:
strategy:
matrix:
go-version: [1.22.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
runs-on: ubuntu-latest
steps:
# Checkout should always be before setup-go to ensure caching is working
- name: Checkout
Expand All @@ -20,7 +16,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
go-version: '1.24'
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/scaleway/scaleway-cli/v2

go 1.22
go 1.24

toolchain go1.22.2
toolchain go1.24.0

require (
github.com/aws/aws-sdk-go-v2 v1.36.2
Expand Down

0 comments on commit 62b32a7

Please sign in to comment.