Skip to content

Commit 661cc9f

Browse files
committed
ci: wait for validation before running all tests
This should safe some test resources if basic validation fails already. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
1 parent b3a8522 commit 661cc9f

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
uses: ./.github/workflows/validate.yml
4747

4848
storage-test:
49-
needs: path-filter
49+
needs: [path-filter, validate]
5050
if: github.event_name == 'push' || needs.path-filter.outputs.storage == 'true'
5151
name: "storage ${{ matrix.distro }} ${{ matrix.driver }}"
5252
strategy:
@@ -66,7 +66,7 @@ jobs:
6666
timeout: 30
6767

6868
storage-cross:
69-
needs: path-filter
69+
needs: [path-filter, validate]
7070
if: github.event_name == 'push' || needs.path-filter.outputs.storage == 'true'
7171
runs-on: ubuntu-24.04
7272
timeout-minutes: 15
@@ -82,7 +82,7 @@ jobs:
8282
run: make cross
8383

8484
storage-gofix:
85-
needs: path-filter
85+
needs: [path-filter, validate]
8686
if: github.event_name == 'push' || needs.path-filter.outputs.storage == 'true'
8787
runs-on: ubuntu-24.04
8888
timeout-minutes: 15
@@ -102,7 +102,7 @@ jobs:
102102
run: go fix -diff ./...
103103

104104
image-cross:
105-
needs: path-filter
105+
needs: [path-filter, validate]
106106
if: github.event_name == 'push' || needs.path-filter.outputs.image == 'true'
107107
runs-on: ubuntu-24.04
108108
timeout-minutes: 15
@@ -122,7 +122,7 @@ jobs:
122122
run: make cross
123123

124124
image-test:
125-
needs: path-filter
125+
needs: [path-filter, validate]
126126
if: github.event_name == 'push' || needs.path-filter.outputs.image == 'true'
127127
name: "${{ matrix.module }} fedora-current ${{ matrix.variant }}"
128128
strategy:
@@ -139,6 +139,7 @@ jobs:
139139
timeout: 30
140140

141141
common-test:
142+
needs: [path-filter, validate]
142143
name: "common fedora-current"
143144
uses: ./.github/workflows/lima.yml
144145
with:

0 commit comments

Comments
 (0)