Skip to content

Commit 3987445

Browse files
authored
Merge pull request #6096 from wileyj/feat/cargo_check_workflow
Add cargo check workflow
2 parents 92bd39e + b619e49 commit 3987445

File tree

1 file changed

+33
-7
lines changed

1 file changed

+33
-7
lines changed

.github/workflows/core-build-tests.yml

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@ name: Core build tests
44
# - PRs are (re)opened against develop branch
55
on:
66
workflow_call:
7-
7+
88
jobs:
99
check-consts:
1010
name: Check the constants from stacks-inspect
1111
runs-on: ubuntu-latest
12+
defaults:
13+
run:
14+
shell: bash
15+
1216
steps:
1317
- name: Checkout the latest code
1418
id: git_checkout
@@ -21,13 +25,35 @@ jobs:
2125
uses: actions-rust-lang/setup-rust-toolchain@11df97af8e8102fd60b60a77dfbf58d40cd843b8 # v1.10.1
2226
with:
2327
toolchain: ${{ env.RUST_TOOLCHAIN }}
24-
- name: Build the binaries
25-
id: build
28+
29+
## run cargo check steps
30+
- name: Cargo Check
31+
id: cargo_check
32+
run: |
33+
cargo check
34+
35+
- name: Cargo Check (monitoring_prom)
36+
id: cargo_check_prom
37+
run: |
38+
cargo check --features monitoring_prom
39+
40+
- name: Cargo Check (clarity)
41+
id: cargo_check_clarity
2642
run: |
27-
cargo build
43+
cargo check -p clarity --no-default-features
44+
45+
- name: Cargo Check (stacks-common)
46+
id: cargo_check_stacks-common
47+
run: |
48+
cargo check -p stacks-common --no-default-features
49+
2850
- name: Dump constants JSON
2951
id: consts-dump
30-
run: cargo run --bin stacks-inspect -- dump-consts | tee out.json
31-
- name: Set expected constants JSON
52+
run: |
53+
cargo run --bin stacks-inspect -- dump-consts | tee out.json
54+
55+
## output any diff to the github job summary
56+
- name: Compare expected constants JSON
3257
id: expects-json
33-
run: diff out.json ./sample/expected_consts.json
58+
run: |
59+
diff out.json ./sample/expected_consts.json >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)