Skip to content

Commit

Permalink
Update CI configs to v0.7.1
Browse files Browse the repository at this point in the history
Update lint scripts and CI configs.
Excluding codecov.yml.
  • Loading branch information
pionbot authored and Sean-Der committed Apr 13, 2022
1 parent ad6d1e1 commit e53f588
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,29 @@ jobs:
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
set -euo pipefail
go-acc -o cover.out ./... -- \
${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: |
Expand Down

0 comments on commit e53f588

Please sign in to comment.