Skip to content

Commit bae1767

Browse files
Update tests.yml
1 parent 7f81733 commit bae1767

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/tests.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff 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: |

0 commit comments

Comments
 (0)