Skip to content

Commit

Permalink
GH-245: Test to set github actions job env variable using matrix.
Browse files Browse the repository at this point in the history
  • Loading branch information
jirenius committed Jun 10, 2024
1 parent b6f6a44 commit 936ac4d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jobs:

go-legacy-test:
runs-on: ubuntu-latest
env: "GO_VERSION=go version ${{ matrix.go-version }}"
strategy:
matrix:
go-version: [ '1.20', '1.21' ]
Expand All @@ -15,6 +16,9 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

- name: Echo go version
run: echo "$GO_VERSION"
- name: Go get
run: go get -t ./...
- name: Build
Expand Down

0 comments on commit 936ac4d

Please sign in to comment.