Skip to content

Commit

Permalink
Set go version strings
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Navarro Perez <[email protected]>
  • Loading branch information
ajnavarro committed May 7, 2024
1 parent 1773e4a commit 50c70ba
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/main_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,31 @@ on:
secrets:
codecov-token:
required: true
env:
GOVERSION: 1.22.x

# TODO: environment variables cannot be sent to reusable workflows: https://docs.github.com/en/actions/using-workflows/reusing-workflows#limitations
# env:
# GO_VERSION: "1.22.x"

jobs:
lint:
name: Go Linter
uses: ./.github/workflows/lint_template.yml
with:
modulepath: ${{ inputs.modulepath }}
go-version: ${{ env.GOVERSION }}
go-version: "1.22.x"
build:
name: Go Build
uses: ./.github/workflows/build_template.yml
with:
modulepath: ${{ inputs.modulepath }}
go-version: ${{ env.GOVERSION }}
go-version: "1.22.x"
test:
name: Go Test
uses: ./.github/workflows/test_template.yml
with:
modulepath: ${{ inputs.modulepath }}
tests-timeout: "30m"
go-version: ${{ env.GOVERSION }}
go-version: "1.22.x"
secrets:
codecov-token: ${{ secrets.codecov-token }}

0 comments on commit 50c70ba

Please sign in to comment.