1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 18:37:41 +02:00

Fix GHA deprecation warnings (#301)

This commit is contained in:
Yuki Okushi
2022-12-01 19:45:31 +09:00
committed by GitHub
parent 9508be94d5
commit 1774b8a36e
5 changed files with 64 additions and 112 deletions

View File

@ -11,15 +11,12 @@ jobs:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: rustfmt
run: |
rustup override set nightly
rustup update nightly
rustup component add rustfmt
- name: Check with rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check
clippy:
runs-on: ubuntu-latest
@ -27,13 +24,9 @@ jobs:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
override: true
run: |
rustup override set stable
rustup update stable
rustup component add rustfmt
- name: Check with Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --workspace --tests --all-features
run: cargo clippy --workspace --tests --all-features