Skip to content

Commit 943cc29

Browse files
committed
CI: Revert workflow env vars names due to PR restrictions
1 parent 5e50f4d commit 943cc29

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

.github/workflows/rust-tests.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ on:
1111
env:
1212
CARGO_TERM_COLOR: always
1313
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
14-
RUST_VERSION_MSRV: "1.81.0"
15-
RUST_VERSION_STABLE: "stable"
14+
RUST_VERSION_OLD: "1.81.0" # aka MSRV
15+
RUST_VERSION_NEW: "stable"
1616

1717
jobs:
1818
tests:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
rust_version: [ "RUST_VERSION_MSRV", "RUST_VERSION_STABLE" ]
22+
rust_version: [ "RUST_VERSION_OLD", "RUST_VERSION_NEW" ]
2323

2424
services:
2525
ydb:
@@ -46,7 +46,7 @@ jobs:
4646
uses: Swatinem/rust-cache@v2
4747

4848
- name: Install nightly rust
49-
if: matrix.rust_version == 'RUST_VERSION_STABLE'
49+
if: matrix.rust_version == 'RUST_VERSION_NEW'
5050
uses: dtolnay/rust-toolchain@nightly
5151
with:
5252
components: clippy, rustfmt
@@ -69,31 +69,33 @@ jobs:
6969
echo "name=version::$(rustc --version | cut -d ' ' -f 2)" >> $GITHUB_OUTPUT
7070
7171
- name: Cargo install
72-
if: matrix.rust_version == 'RUST_VERSION_STABLE'
72+
if: matrix.rust_version == 'RUST_VERSION_NEW'
7373
run: cargo install --locked cargo-sort cargo-udeps cargo-audit cargo-pants
7474

7575
- name: Rustfmt check
76-
if: matrix.rust_version == 'RUST_VERSION_STABLE'
76+
if: matrix.rust_version == 'RUST_VERSION_NEW'
7777
run: cargo fmt --check
7878

7979
- name: Cargo sort check
80-
if: matrix.rust_version == 'RUST_VERSION_STABLE'
80+
if: matrix.rust_version == 'RUST_VERSION_NEW'
8181
run: cargo sort --workspace --check
8282

8383
- name: Cargo udeps check
84-
if: matrix.rust_version == 'RUST_VERSION_STABLE'
84+
if: matrix.rust_version == 'RUST_VERSION_NEW'
8585
run: cargo +nightly udeps --all-targets
8686

8787
- name: Security check
88-
if: matrix.rust_version == 'RUST_VERSION_STABLE'
89-
run: cargo audit && cargo pants
88+
if: matrix.rust_version == 'RUST_VERSION_NEW'
89+
run: |
90+
cargo audit
91+
cargo pants
9092
9193
- name: Run tests
9294
env:
9395
YDB_CONNECTION_STRING: grpc://localhost:2136?database=/local
9496
run: cargo test --verbose --workspace -- --include-ignored
9597

9698
- name: Linter
97-
if: matrix.rust_version == 'RUST_VERSION_STABLE'
99+
if: matrix.rust_version == 'RUST_VERSION_NEW'
98100
run: |
99101
cargo clippy --workspace --all-targets --no-deps --exclude=ydb-grpc -- -D warnings

Cargo.lock

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)