Skip to content

Commit

Permalink
chore: Use tparse in CI
Browse files Browse the repository at this point in the history
Closes: #27
Signed-off-by: Michael Gasch <15986659+embano1@users.noreply.github.com>
  • Loading branch information
embano1 committed Jul 7, 2022
1 parent 534f640 commit 7eca025
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/e2e.yaml
Expand Up @@ -29,6 +29,9 @@ jobs:
- name: Setup ko
uses: imjasonh/setup-ko@v0.4 # will install latest ko version

- name: Install tparse
run: go install github.com/mfridman/tparse@latest

- name: Check out Code onto GOPATH
uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -60,9 +63,9 @@ jobs:

- name: "Run E2E Tests"
env:
TESTFLAGS: "-v -tags=e2e -count 1 -race"
TESTFLAGS: "-v -tags=e2e -count 1 -race -json"
run: |
go test ${TESTFLAGS} ./test
go test ${TESTFLAGS} ./test | tparse -all -notests -format markdown >> $GITHUB_STEP_SUMMARY
- name: "Debug"
if: ${{ always() }}
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/go-tests.yaml
Expand Up @@ -25,6 +25,9 @@ jobs:
go-version: ${{ matrix.go-version }}
id: go

- name: Install tparse
run: go install github.com/mfridman/tparse@latest

- name: Check out code
uses: actions/checkout@v3

Expand All @@ -40,8 +43,8 @@ jobs:

- name: Test
env:
GOFLAGS: "-v -race -count=1"
run: go test $COVER_OPTS ./...
GOFLAGS: "-v -race -count=1 -json"
run: go test $COVER_OPTS ./... | tparse -all -notests -format markdown >> $GITHUB_STEP_SUMMARY

- name: Verify git clean
shell: bash
Expand Down

0 comments on commit 7eca025

Please sign in to comment.