Skip to content

Commit

Permalink
chore: require go 1.21 (#294)
Browse files Browse the repository at this point in the history
* chore: require go 1.21

Signed-off-by: Todd Baert <[email protected]>
  • Loading branch information
toddbaert authored Oct 22, 2024
1 parent 0b13f8a commit ddfffdd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,17 @@ on:
branches:
- main
pull_request:
env:
# Default minimum version of Go to support.
DEFAULT_GO_VERSION: "~1.20"

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.DEFAULT_GO_VERSION }}
- name: Checkout repository
uses: actions/checkout@v4
go-version-file: 'go.mod'
- name: Setup Environment
run: |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
Expand All @@ -36,14 +34,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.DEFAULT_GO_VERSION }}
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Setup Environment
run: |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
# Default minimum version of Go to support.
DEFAULT_GO_VERSION: "~1.20"

jobs:
release-please:
Expand Down Expand Up @@ -37,7 +35,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.DEFAULT_GO_VERSION }}
go-version-file: 'go.mod'

- name: Install cyclonedx-gomod
uses: CycloneDX/gh-gomod-generate-sbom@v2
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/open-feature/go-sdk

go 1.20
go 1.21

require (
github.com/cucumber/godog v0.14.1
Expand Down

0 comments on commit ddfffdd

Please sign in to comment.