mirror of
https://github.com/ddworken/hishtory.git
synced 2025-02-23 22:11:13 +01:00
Add overall test retries for all tests to make github action tests even more reliable
This commit is contained in:
parent
fd018fa759
commit
22abfbc733
2
.github/workflows/go-test.yml
vendored
2
.github/workflows/go-test.yml
vendored
@ -46,7 +46,7 @@ jobs:
|
||||
- name: Go test
|
||||
if: ${{ !startsWith(github.event.head_commit.message, 'Release') }}
|
||||
run: |
|
||||
make test
|
||||
make retrying-test
|
||||
# - name: Setup tmate session
|
||||
# if: ${{ failure() }}
|
||||
# uses: mxschmitt/action-tmate@v3
|
||||
|
3
Makefile
3
Makefile
@ -9,6 +9,9 @@ ftest:
|
||||
go clean -testcache
|
||||
TZ='America/Los_Angeles' HISHTORY_TEST=1 HISHTORY_SKIP_INIT_IMPORT=1 go test -v -p 1 -run "$(FILTER)" ./...
|
||||
|
||||
retrying-test:
|
||||
for i in `seq 1 3`; do echo "Test attempt number $$i"; make test && break; done
|
||||
|
||||
acttest:
|
||||
act push -j test -e .github/push_event.json --reuse --container-architecture linux/amd64
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user