Skip to content

Commit 2420837

Browse files
author
Tarak Ben Youssef
committed
separate setup phase in module tests to avoid setup retries
1 parent f4dcc4d commit 2420837

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,16 +162,20 @@ jobs:
162162
with:
163163
go-version: ${{ env.GO_VERSION }}
164164
cache: true
165+
- name: Setup tests (${{ matrix.name }})
166+
with:
167+
cache: true
168+
command: |
169+
make ${{ matrix.make1 }}
165170
- name: Run tests (${{ matrix.name }})
166171
env:
167172
RACE_DETECTOR: ${{ matrix.race }}
168173
uses: nick-fields/retry@v2
169174
with:
170175
timeout_minutes: 25
171176
max_attempts: ${{ matrix.retries }}
172-
# run `make1` target before running `make2` target inside each module's root
177+
# run `make2` target inside each module's root
173178
command: |
174-
make ${{ matrix.make1 }}
175179
VERBOSE=1 make -C ${{ matrix.name }} ${{ matrix.make2 }}
176180
- name: Upload coverage report
177181
uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)