Skip to content

Commit 0f59db0

Browse files
committed
run tests before building cli
1 parent b5215e2 commit 0f59db0

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/release-cli.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,17 @@ on:
1010
type: string
1111

1212
jobs:
13+
run-tests:
14+
name: Run Tests
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Run Tests
18+
run: cargo test --package jsoncodegen-cli -- --nocapture
19+
1320
build-linux-x86_64:
1421
name: Build (Linux x86_64)
22+
needs:
23+
- run-tests
1524
runs-on: ubuntu-latest
1625
steps:
1726
- name: Checkout
@@ -42,6 +51,8 @@ jobs:
4251

4352
build-linux-arm64:
4453
name: Build (Linux ARM64)
54+
needs:
55+
- run-tests
4556
runs-on: ubuntu-24.04-arm
4657
steps:
4758
- name: Checkout
@@ -72,6 +83,8 @@ jobs:
7283

7384
build-windows-x86_64:
7485
name: Build (Windows MSVC x86_64)
86+
needs:
87+
- run-tests
7588
runs-on: windows-latest
7689
steps:
7790
- name: Checkout
@@ -102,6 +115,8 @@ jobs:
102115

103116
build-windows-i686:
104117
name: Build (Windows MSVC i686)
118+
needs:
119+
- run-tests
105120
runs-on: windows-latest
106121
steps:
107122
- name: Checkout
@@ -132,6 +147,8 @@ jobs:
132147

133148
build-windows-arm64:
134149
name: Build (Windows ARM64 MSVC)
150+
needs:
151+
- run-tests
135152
runs-on: windows-11-arm
136153
steps:
137154
- name: Checkout
@@ -162,6 +179,8 @@ jobs:
162179

163180
build-macos-x86_64:
164181
name: Build (macOS x86_64)
182+
needs:
183+
- run-tests
165184
runs-on: macos-latest
166185
steps:
167186
- name: Checkout
@@ -192,6 +211,8 @@ jobs:
192211

193212
build-macos-arm64:
194213
name: Build (macOS ARM64)
214+
needs:
215+
- run-tests
195216
runs-on: macos-latest
196217
steps:
197218
- name: Checkout

0 commit comments

Comments
 (0)