File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -42,21 +42,21 @@ jobs:
4242
4343 - name : Build
4444 run : go build -v ./...
45-
45+
4646 - name : Test
4747 id : test
4848 run : |
49- test_output=$(go test -v -count=1 ./... 2>&1)
50- echo "test_output<<EOF" >> $GITHUB_STEP_SUMMARY
51- echo "$test_output" >> $GITHUB_STEP_SUMMARY
52- echo "EOF" >> $GITHUB_STEP_SUMMARY
53-
54- passed_count=$(echo "$test_output" | grep "PASS:" | wc -l)
55- failed_count=$(echo "$test_output" | grep "FAIL:" | wc -l)
56-
57- echo "::set-output name= passed::$(echo $ passed_count)"
58- echo "::set-output name= failed::$(echo $ failed_count)"
59-
49+ test_output=$(go test -v -count=1 ./... 2>&1)
50+ echo "test_output<<EOF" >> $GITHUB_STEP_SUMMARY
51+ echo "$test_output" >> $GITHUB_STEP_SUMMARY
52+ echo "EOF" >> $GITHUB_STEP_SUMMARY
53+
54+ passed_count=$(echo "$test_output" | grep "PASS:" | wc -l)
55+ failed_count=$(echo "$test_output" | grep "FAIL:" | wc -l)
56+
57+ echo "passed=$ passed_count" >> $GITHUB_ENV
58+ echo "failed=$ failed_count" >> $GITHUB_ENV
59+
6060 - name : Test Summary
6161 if : always()
6262 run : |
You can’t perform that action at this time.
0 commit comments