Skip to content

Commit cdaba61

Browse files
committed
ci: only build if tests pass
1 parent e5ceff3 commit cdaba61

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/ci.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
2525
tests:
2626
if: github.ref_type == 'tag' || startsWith(github.ref, 'refs/pull/')
27+
needs: lint
2728
runs-on: ubuntu-latest
2829
name: Tests
2930
steps:
@@ -34,7 +35,7 @@ jobs:
3435

3536
build-windows:
3637
if: github.ref_type == 'tag' || startsWith(github.ref, 'refs/pull/')
37-
needs: lint
38+
needs: [lint, tests]
3839
runs-on: windows-latest
3940
name: Release build for Windows
4041
steps:
@@ -52,7 +53,7 @@ jobs:
5253

5354
build-macos:
5455
if: github.ref_type == 'tag' || startsWith(github.ref, 'refs/pull/')
55-
needs: lint
56+
needs: [lint, tests]
5657
runs-on: macos-latest
5758
name: Release build for macOS
5859
steps:
@@ -70,7 +71,7 @@ jobs:
7071

7172
build-linux:
7273
if: github.ref_type == 'tag' || startsWith(github.ref, 'refs/pull/')
73-
needs: lint
74+
needs: [lint, tests]
7475
runs-on: ubuntu-latest
7576
name: Release build for linux x86_64
7677
steps:
@@ -92,7 +93,7 @@ jobs:
9293

9394
build-arm:
9495
if: github.ref_type == 'tag' || startsWith(github.ref, 'refs/pull/')
95-
needs: lint
96+
needs: [lint, tests]
9697
name: Release builds for linux ARM
9798
runs-on: ubuntu-latest
9899
strategy:

0 commit comments

Comments
 (0)