Skip to content

Commit 4010fb6

Browse files
committed
Managed by Terraform: Update go-test-linux.yml GitHub workflow
1 parent 207ce85 commit 4010fb6

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/go-test-linux.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
name: "Go Test Linux"
77

8-
on: [ workflow_dispatch, push ]
8+
on: [ push ]
99

1010
permissions:
1111
contents: read
@@ -18,14 +18,18 @@ jobs:
1818
- name: 'Determine Go version'
1919
id: get-go-version
2020
run: |
21-
echo "Building with Go $(cat .go-version)"
22-
echo "::set-output name=go-version::$(cat .go-version)"
23-
Linux-go-tests:
21+
echo "Found Go $(cat .go-version)"
22+
echo "go-version=$(cat .go-version)" >> $GITHUB_OUTPUT
23+
linux-go-tests:
24+
needs:
25+
- get-go-version
2426
runs-on: ubuntu-latest
2527
name: Linux Go tests
2628
steps:
2729
- uses: actions/checkout@v2
2830
- uses: actions/setup-go@v3
2931
with:
3032
go-version: ${{ needs.get-go-version.outputs.go-version }}
31-
- run: go test -race -count 1 ./... -timeout=3m
33+
- run: |
34+
echo "Testing with Go $(cat .go-version)"
35+
go test -race -count 1 ./... -timeout=3m

0 commit comments

Comments
 (0)