Skip to content

Commit 0ff6e25

Browse files
committed
Managed by Terraform: Update go-test-darwin.yml GitHub workflow
1 parent 709545b commit 0ff6e25

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

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

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

66
name: "Go Test MacOS"
77

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

1010
permissions:
1111
contents: read
@@ -18,16 +18,20 @@ 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)"
21+
echo "Found Go $(cat .go-version)"
22+
echo "go-version=$(cat .go-version)" >> $GITHUB_OUTPUT
2323
darwin-go-tests:
24+
needs:
25+
- get-go-version
2426
runs-on: macos-latest
2527
name: Darwin 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
3236
3337

0 commit comments

Comments
 (0)