Skip to content

Commit

Permalink
ci: allow retries
Browse files Browse the repository at this point in the history
  • Loading branch information
kortschak committed Sep 15, 2024
1 parent cf6cdb9 commit 50b71d4
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,32 @@ jobs:
sleep 1
- name: unit tests
run: |
go test ./rpc ./internal/... ./cmd/*/api ./cmd/worklog/store
go test -run 'Test(Amendments|Continuation|DashboardData)$' ./cmd/worklog
uses: nick-fields/retry@v3
with:
timeout_minutes: 10
max_attempts: 3
command: |
go test ./rpc ./internal/... ./cmd/*/api ./cmd/worklog/store
go test -run 'Test(Amendments|Continuation|DashboardData)$' ./cmd/worklog
- name: integration tests
run: |
go test .
go test -p=1 -run TestDaemon ./cmd/* -verbose_log
go test -run TestDaemon ./cmd/watcher -dynamic_timezone=false -verbose_log
go test -run TestDaemon ./cmd/watcher -dynamic_timezone=true -verbose_log
uses: nick-fields/retry@v3
with:
timeout_minutes: 10
max_attempts: 3
command: |
go test .
go test -p=1 -run TestDaemon ./cmd/* -verbose_log
go test -run TestDaemon ./cmd/watcher -dynamic_timezone=false -verbose_log
go test -run TestDaemon ./cmd/watcher -dynamic_timezone=true -verbose_log
- name: no xorg watcher
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get remove -qq libxss-dev libxres-dev libx11-dev
sudo apt-get autoremove -qq
go build -tags no_xorg ./cmd/watcher
uses: nick-fields/retry@v3
with:
timeout_minutes: 10
max_attempts: 3
command: |
sudo apt-get remove -qq libxss-dev libxres-dev libx11-dev
sudo apt-get autoremove -qq
go build -tags no_xorg ./cmd/watcher

0 comments on commit 50b71d4

Please sign in to comment.