File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66name : " Go Test Linux"
77
8- on : [ workflow_dispatch, push ]
8+ on : [ push ]
99
1010permissions :
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
You can’t perform that action at this time.
0 commit comments