diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8921079..bacb642 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: name: Main Process runs-on: ubuntu-latest env: - GO_VERSION: stable + GO_VERSION: '1.22.x' GOLANGCI_LINT_VERSION: v1.56.2 CGO_ENABLED: 0 @@ -23,6 +23,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} + check-latest: true # https://github.com/marketplace/actions/checkout - name: Check out code diff --git a/.github/workflows/go-cross.yml b/.github/workflows/go-cross.yml index 7306702..74218a8 100644 --- a/.github/workflows/go-cross.yml +++ b/.github/workflows/go-cross.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - go-version: [ stable, oldstable ] + go-version: [ '1.22.x', '1.21.x' ] os: [ubuntu-latest, macos-latest, windows-latest] steps: @@ -25,6 +25,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} + check-latest: true # https://github.com/marketplace/actions/checkout - name: Checkout code diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 348b992..20aa5f2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ jobs: name: Release Process runs-on: ubuntu-latest env: - GO_VERSION: stable + GO_VERSION: '1.22.x' CGO_ENABLED: 0 steps: @@ -19,6 +19,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} + check-latest: true # https://github.com/marketplace/actions/checkout - name: Check out code diff --git a/go.mod b/go.mod index 9dae2ca..9ce066f 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/traefik/mocktail -go 1.22 +go 1.21 require ( github.com/ettle/strcase v0.2.0