Skip to content

Commit d89dbdd

Browse files
author
Tarak Ben Youssef
committed
split ci into install-tools and test
1 parent 2420837 commit d89dbdd

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,14 @@ jobs:
115115
with:
116116
go-version: ${{ env.GO_VERSION }}
117117
cache: true
118+
- name: Setup tests (${{ matrix.targets.name }}
119+
run: VERBOSE=1 make -e GO_TEST_PACKAGES="${{ matrix.targets.packages }}" install-tools
118120
- name: Run tests (${{ matrix.targets.name }})
119121
uses: nick-fields/retry@v2
120122
with:
121123
timeout_minutes: 25
122124
max_attempts: 3
123-
command: VERBOSE=1 make -e GO_TEST_PACKAGES="${{ matrix.targets.packages }}" ci
125+
command: VERBOSE=1 make -e GO_TEST_PACKAGES="${{ matrix.targets.packages }}" test
124126

125127
# TODO(rbtz): re-enable when we fix exisiting races.
126128
#env:
@@ -163,10 +165,7 @@ jobs:
163165
go-version: ${{ env.GO_VERSION }}
164166
cache: true
165167
- name: Setup tests (${{ matrix.name }})
166-
with:
167-
cache: true
168-
command: |
169-
make ${{ matrix.make1 }}
168+
run: make ${{ matrix.make1 }}
170169
- name: Run tests (${{ matrix.name }})
171170
env:
172171
RACE_DETECTOR: ${{ matrix.race }}
@@ -175,8 +174,7 @@ jobs:
175174
timeout_minutes: 25
176175
max_attempts: ${{ matrix.retries }}
177176
# run `make2` target inside each module's root
178-
command: |
179-
VERBOSE=1 make -C ${{ matrix.name }} ${{ matrix.make2 }}
177+
command: VERBOSE=1 make -C ${{ matrix.name }} ${{ matrix.make2 }}
180178
- name: Upload coverage report
181179
uses: codecov/codecov-action@v3
182180
with:

0 commit comments

Comments
 (0)