From 7eca025ccc14a1260925fa442a2aa3815b6067ba Mon Sep 17 00:00:00 2001 From: Michael Gasch <15986659+embano1@users.noreply.github.com> Date: Thu, 7 Jul 2022 14:15:39 +0200 Subject: [PATCH] chore: Use tparse in CI Closes: #27 Signed-off-by: Michael Gasch <15986659+embano1@users.noreply.github.com> --- .github/workflows/e2e.yaml | 7 +++++-- .github/workflows/go-tests.yaml | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 542b543..9bd2d21 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -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: @@ -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() }} diff --git a/.github/workflows/go-tests.yaml b/.github/workflows/go-tests.yaml index 14e0127..e0b0275 100644 --- a/.github/workflows/go-tests.yaml +++ b/.github/workflows/go-tests.yaml @@ -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 @@ -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