Skip to content

Commit

Permalink
Updates deprecated actions-rs/toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
sanpii committed Apr 7, 2023
1 parent d9593f8 commit e8b2e3d
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,23 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt
- name: Check formating
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt -- --check

lint_clippy:
name: Clippy
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: clippy
- name: Run clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features -- --deny warnings
run: cargo clippy --all-features -- --deny warnings

tests:
name: Tests
Expand All @@ -47,7 +39,7 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}

Expand Down

0 comments on commit e8b2e3d

Please sign in to comment.