Skip to content

Commit 4522617

Browse files
committed
Adds cargo check steps to the core build tests workflow
1 parent e45867c commit 4522617

File tree

1 file changed

+48
-5
lines changed

1 file changed

+48
-5
lines changed

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

Lines changed: 48 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@ name: Core build tests
44
# - PRs are (re)opened against develop branch
55
on:
66
workflow_call:
7+
## for testing workflow. remove for PR
8+
workflow_dispatch:
79

810
jobs:
911
check-consts:
1012
name: Check the constants from stacks-inspect
1113
runs-on: ubuntu-latest
14+
defaults:
15+
run:
16+
shell: bash
17+
1218
steps:
1319
- name: Checkout the latest code
1420
id: git_checkout
@@ -21,13 +27,50 @@ jobs:
2127
uses: actions-rust-lang/setup-rust-toolchain@11df97af8e8102fd60b60a77dfbf58d40cd843b8 # v1.10.1
2228
with:
2329
toolchain: ${{ env.RUST_TOOLCHAIN }}
24-
- name: Build the binaries
25-
id: build
30+
## run the cargo check steps
31+
- name: Cargo Check
32+
id: cargo_check
33+
run: |
34+
cargo check
35+
# cargo check --features monitoring_prom
36+
# cargo check -p clarity --no-default-features
37+
# cargo check -p stacks-common --no-default-features
38+
39+
- name: Cargo Check (monitoring_prom)
40+
id: cargo_check_prom
41+
run: |
42+
# cargo check
43+
cargo check --features monitoring_prom
44+
# cargo check -p clarity --no-default-features
45+
# cargo check -p stacks-common --no-default-features
46+
47+
- name: Cargo Check (clarity)
48+
id: cargo_check_clarity
49+
run: |
50+
# cargo check
51+
# cargo check --features monitoring_prom
52+
cargo check -p clarity --no-default-features
53+
# cargo check -p stacks-common --no-default-features
54+
55+
- name: Cargo Check (stacks-common)
56+
id: cargo_check_stacks-common
57+
run: |
58+
# cargo check
59+
# cargo check --features monitoring_prom
60+
# cargo check -p clarity --no-default-features
61+
cargo check -p stacks-common --no-default-features
62+
## end cargo test
63+
- name: Build stacks-inspect
64+
id: build_stacks-inspect
2665
run: |
27-
cargo build
66+
cargo build --bin stacks-inspect
67+
2868
- name: Dump constants JSON
2969
id: consts-dump
30-
run: cargo run --bin stacks-inspect -- dump-consts | tee out.json
70+
run: |
71+
cargo run --bin stacks-inspect -- dump-consts | tee out.json
72+
3173
- name: Set expected constants JSON
3274
id: expects-json
33-
run: diff out.json ./sample/expected_consts.json
75+
run: |
76+
diff out.json ./sample/expected_consts.json

0 commit comments

Comments
 (0)