@@ -4,11 +4,15 @@ name: Core build tests
4
4
# - PRs are (re)opened against develop branch
5
5
on :
6
6
workflow_call :
7
-
7
+
8
8
jobs :
9
9
check-consts :
10
10
name : Check the constants from stacks-inspect
11
11
runs-on : ubuntu-latest
12
+ defaults :
13
+ run :
14
+ shell : bash
15
+
12
16
steps :
13
17
- name : Checkout the latest code
14
18
id : git_checkout
@@ -21,13 +25,35 @@ jobs:
21
25
uses : actions-rust-lang/setup-rust-toolchain@11df97af8e8102fd60b60a77dfbf58d40cd843b8 # v1.10.1
22
26
with :
23
27
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
26
42
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
+
28
50
- name : Dump constants JSON
29
51
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
32
57
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