Catch upcoming deprecations

This commit is contained in:
Jon Gjengset 2022-09-18 12:10:58 -07:00
parent 56d4398a24
commit 15c1fa2ffc

View file

@ -33,7 +33,7 @@ jobs:
# https://twitter.com/alcuadrado/status/1571291687837732873 # https://twitter.com/alcuadrado/status/1571291687837732873
update: update:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: ubuntu / stable / updated name: ubuntu / beta / updated
# There's no point running this if no Cargo.lock was checked in in the # There's no point running this if no Cargo.lock was checked in in the
# first place, since we'd just redo what happened in the regular test job. # first place, since we'd just redo what happened in the regular test job.
# Unfortunately, hashFiles only works in if on steps, so we reepeat it. # Unfortunately, hashFiles only works in if on steps, so we reepeat it.
@ -42,12 +42,13 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- name: Install stable - name: Install beta
if: hashFiles('Cargo.lock') != '' if: hashFiles('Cargo.lock') != ''
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
profile: minimal profile: minimal
toolchain: stable toolchain: beta
default: true
- name: cargo update - name: cargo update
if: hashFiles('Cargo.lock') != '' if: hashFiles('Cargo.lock') != ''
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
@ -59,3 +60,5 @@ jobs:
with: with:
command: test command: test
args: --locked --all-features --all-targets args: --locked --all-features --all-targets
env:
RUSTFLAGS: -D deprecated