Skip to content

Commit e29ad3c

Browse files
committed
Update ci_tests.yml
1 parent 95484d6 commit e29ad3c

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/ci_tests.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@ on:
66
- main
77
paths-ignore:
88
- '**.md'
9+
- 'src/**/**.md'
10+
- 'Makefiles/**'
911
pull_request:
1012
paths-ignore:
1113
- '**.md'
1214
- 'book/**'
1315
- 'src/**/**.md'
16+
- 'Makefiles/**'
1417

1518
env:
19+
RUST_LATEST_STABLE_VERSION: 1.65
1620
CARGO_TERM_COLOR: always
1721
RUSTFLAGS: -D warnings
1822
RUST_BACKTRACE: 1
@@ -39,7 +43,7 @@ jobs:
3943
- name: Run vit-ss tests
4044
uses: actions-rs/toolchain@v1
4145
with:
42-
toolchain: "1.65" # it says it can read the rust-toolchain file, but it fails if we omit this
46+
toolchain: $$RUST_LATEST_STABLE_VERSION
4347
- run: |
4448
cargo build -p vit-servicing-station-cli -p vit-servicing-station-server
4549
cargo nextest run \
@@ -69,7 +73,7 @@ jobs:
6973
- name: Run catalyst-toolbox tests
7074
uses: actions-rs/toolchain@v1
7175
with:
72-
toolchain: "1.65" # it says it can read the rust-toolchain file, but it fails if we omit this
76+
toolchain: $RUST_LATEST_STABLE_VERSION
7377
- run: cargo nextest run -p catalyst-toolbox -p snapshot-lib --profile ci
7478

7579
voting_tools:
@@ -92,7 +96,7 @@ jobs:
9296
- name: Run voting-tools tests
9397
uses: actions-rs/toolchain@v1
9498
with:
95-
toolchain: "1.65" # it says it can read the rust-toolchain file, but it fails if we omit this
99+
toolchain: $RUST_LATEST_STABLE_VERSION
96100
- run: cargo nextest run -p voting_tools_rs --profile ci
97101

98102
chain-libs:
@@ -115,7 +119,7 @@ jobs:
115119
- name: Run chain-libs tests
116120
uses: actions-rs/toolchain@v1
117121
with:
118-
toolchain: "1.65" # it says it can read the rust-toolchain file, but it fails if we omit this
122+
toolchain: $RUST_LATEST_STABLE_VERSION
119123
- run: cargo nextest run -p "chain-*" --profile ci
120124

121125
jormungandr:
@@ -138,7 +142,7 @@ jobs:
138142
- name: Run jormungandr tests
139143
uses: actions-rs/toolchain@v1
140144
with:
141-
toolchain: "1.65" # it says it can read the rust-toolchain file, but it fails if we omit this
145+
toolchain: $RUST_LATEST_STABLE_VERSION
142146
- run: cargo nextest run -p jormungandr --profile ci
143147

144148
jormungandr-integration:
@@ -161,7 +165,7 @@ jobs:
161165
- name: Run jormungandr-integration tests
162166
uses: actions-rs/toolchain@v1
163167
with:
164-
toolchain: "1.65" # it says it can read the rust-toolchain file, but it fails if we omit this
168+
toolchain: $RUST_LATEST_STABLE_VERSION
165169
- run: |
166170
cargo build -p jcli -p jormungandr -p explorer
167171
cargo nextest run -p jormungandr-integration-tests --profile ci
@@ -213,6 +217,6 @@ jobs:
213217
- name: Clippy and fmt
214218
uses: actions-rs/toolchain@v1
215219
with:
216-
toolchain: "1.65" # it says it can read the rust-toolchain file, but it fails if we omit this
220+
toolchain: $RUST_LATEST_STABLE_VERSION
217221
components: rustfmt, clippy
218222
- run: scripts/check-fmt.sh

0 commit comments

Comments
 (0)