Skip to content

Commit

Permalink
test.yml set MSRV for test
Browse files Browse the repository at this point in the history
Previously, the MSRV 1.57.0 was not actually being used
to run the `cargo test`, the default rust was used (currently
at 1.70.0).
  • Loading branch information
jtmoon79 committed Nov 4, 2023
1 parent 15c8885 commit 0ff0918
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches: [main, 0.4.x]
pull_request:

env:
MSRV: "1.57.0"

jobs:
timezones:
strategy:
Expand All @@ -30,16 +33,21 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.57
toolchain: ${{ env.MSRV }}
- run: rustup override set ${{ env.MSRV }}
- uses: Swatinem/rust-cache@v2
# run --lib and --doc to avoid the long running integration tests
# which are run elsewhere
- run: |
set -eux
cargo --version
cargo test --lib \
--features \
unstable-locales,wasmbind,oldtime,clock,rustc-serialize,winapi,serde \
--color=always -- --color=always
- run: |
set -eux
cargo --version
cargo test --doc \
--features \
unstable-locales,wasmbind,oldtime,clock,rustc-serialize,winapi,serde \
Expand Down

0 comments on commit 0ff0918

Please sign in to comment.