@@ -2,12 +2,21 @@ name: CI-Tests
22
33on :
44 push :
5- branches : [ "main" ]
6- paths-ignore : ["README.md", "CODE_OF_CONDUCT.md", "CONTRIBUTING.md"]
5+ branches :
6+ - main
7+ paths-ignore :
8+ - ' **.md'
9+ - ' src/**/**.md'
10+ - ' Makefiles/**'
711 pull_request :
8- paths-ignore : ["README.md", "CODE_OF_CONDUCT.md", "CONTRIBUTING.md"]
12+ paths-ignore :
13+ - ' **.md'
14+ - ' book/**'
15+ - ' src/**/**.md'
16+ - ' Makefiles/**'
917
1018env :
19+ RUST_LATEST_STABLE_VERSION : 1.65
1120 CARGO_TERM_COLOR : always
1221 RUSTFLAGS : -D warnings
1322 RUST_BACKTRACE : 1
3443 - name : Run vit-ss tests
3544 uses : actions-rs/toolchain@v1
3645 with :
37- toolchain : " 1.65 " # it says it can read the rust-toolchain file, but it fails if we omit this
46+ toolchain : ${{env.RUST_LATEST_STABLE_VERSION}}
3847 - run : |
3948 cargo build -p vit-servicing-station-cli -p vit-servicing-station-server
4049 cargo nextest run \
6473 - name : Run catalyst-toolbox tests
6574 uses : actions-rs/toolchain@v1
6675 with :
67- toolchain : " 1.65 " # it says it can read the rust-toolchain file, but it fails if we omit this
76+ toolchain : ${{env.RUST_LATEST_STABLE_VERSION}}
6877 - run : cargo nextest run -p catalyst-toolbox -p snapshot-lib --profile ci
6978
7079 voting_tools :
8796 - name : Run voting-tools tests
8897 uses : actions-rs/toolchain@v1
8998 with :
90- toolchain : " 1.65 " # it says it can read the rust-toolchain file, but it fails if we omit this
99+ toolchain : ${{env.RUST_LATEST_STABLE_VERSION}}
91100 - run : cargo nextest run -p voting_tools_rs --profile ci
92101
93102 chain-libs :
@@ -110,7 +119,7 @@ jobs:
110119 - name : Run chain-libs tests
111120 uses : actions-rs/toolchain@v1
112121 with :
113- toolchain : " 1.65 " # it says it can read the rust-toolchain file, but it fails if we omit this
122+ toolchain : ${{env.RUST_LATEST_STABLE_VERSION}}
114123 - run : cargo nextest run -p "chain-*" --profile ci
115124
116125 jormungandr :
@@ -133,7 +142,7 @@ jobs:
133142 - name : Run jormungandr tests
134143 uses : actions-rs/toolchain@v1
135144 with :
136- toolchain : " 1.65 " # it says it can read the rust-toolchain file, but it fails if we omit this
145+ toolchain : ${{env.RUST_LATEST_STABLE_VERSION}}
137146 - run : cargo nextest run -p jormungandr --profile ci
138147
139148 jormungandr-integration :
@@ -156,7 +165,7 @@ jobs:
156165 - name : Run jormungandr-integration tests
157166 uses : actions-rs/toolchain@v1
158167 with :
159- toolchain : " 1.65 " # it says it can read the rust-toolchain file, but it fails if we omit this
168+ toolchain : ${{env.RUST_LATEST_STABLE_VERSION}}
160169 - run : |
161170 cargo build -p jcli -p jormungandr -p explorer
162171 cargo nextest run -p jormungandr-integration-tests --profile ci
@@ -208,6 +217,6 @@ jobs:
208217 - name : Clippy and fmt
209218 uses : actions-rs/toolchain@v1
210219 with :
211- toolchain : " 1.65 " # it says it can read the rust-toolchain file, but it fails if we omit this
220+ toolchain : ${{env.RUST_LATEST_STABLE_VERSION}}
212221 components : rustfmt, clippy
213222 - run : scripts/check-fmt.sh
0 commit comments