Skip to content

Commit

Permalink
chore: extract GO_VERSION into env var
Browse files Browse the repository at this point in the history
  • Loading branch information
ijames-gc committed Nov 4, 2024
1 parent 06f07d9 commit e7b9254
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build-integration.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: build-integration

env:
GO_VERSION: '1.17.3'

on:
pull_request:
types: [ opened, reopened, synchronize ]
Expand All @@ -20,7 +24,7 @@ jobs:
- uses: actions/[email protected]
- uses: actions/setup-go@v3
with:
go-version: 1.17.3
go-version: ${{ env.GO_VERSION }}
- run: make test

rubocop:
Expand All @@ -38,7 +42,7 @@ jobs:
- uses: actions/[email protected]
- uses: actions/setup-go@v3
with:
go-version: 1.17.3
go-version: ${{ env.GO_VERSION }}
- run: go mod tidy
- run: |
if ! git diff --exit-code -- go.mod go.sum; then
Expand All @@ -51,7 +55,7 @@ jobs:
- uses: actions/[email protected]
- uses: actions/setup-go@v3
with:
go-version: 1.17.3
go-version: ${{ env.GO_VERSION }}
- run: go mod download
- run: env GOPROXY=off go build -mod=readonly ./...

Expand All @@ -61,7 +65,7 @@ jobs:
- uses: actions/[email protected]
- uses: actions/setup-go@v3
with:
go-version: 1.17.3
go-version: ${{ env.GO_VERSION }}
- name: Build linux binary
run: make build-production
- uses: ruby/setup-ruby@v1
Expand Down

0 comments on commit e7b9254

Please sign in to comment.