From 48cce1fca166e6b397179f071a40ca66da962cf7 Mon Sep 17 00:00:00 2001 From: Pion <59523206+pionbot@users.noreply.github.com> Date: Wed, 13 Apr 2022 09:03:48 +0000 Subject: [PATCH] Update CI configs to v0.7.0 Update lint scripts and CI configs. --- .github/workflows/test.yaml | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 95e97fd..eba60e0 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -43,19 +43,30 @@ jobs: with: go-version: ${{ matrix.go }} - - name: Setup go-acc - run: | - go get github.com/ory/go-acc - git checkout go.mod go.sum + - name: Set up gotestfmt + uses: haveyoudebuggedit/gotestfmt-action@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} # Avoid getting rate limited - name: Run test run: | TEST_BENCH_OPTION="-bench=." if [ -f .github/.ci.conf ]; then . .github/.ci.conf; fi - go-acc -o cover.out ./... -- \ + set -euo pipefail + go test -coverprofile=cover.out -covermode=atomic \ ${TEST_BENCH_OPTION} \ - -v -race + -json \ + -v -race \ + ./... 2>&1 | tee /tmp/gotest.log | gotestfmt + + - name: Upload test log + uses: actions/upload-artifact@v2 + if: always() + with: + name: test-log-${{ matrix.go }} + path: /tmp/gotest.log + if-no-files-found: error - name: Run TEST_HOOK run: |