Skip to content

Commit

Permalink
fix: usage of archived actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hamirmahal committed Dec 14, 2024
1 parent 24b2e25 commit 2efe592
Showing 1 changed file with 3 additions and 40 deletions.
43 changes: 3 additions & 40 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt
default: true

- name: Check formatting
run: cargo fmt -- --check

linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
default: true
- name: Lint (clippy)
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

- run: cargo clippy -- -D warnings
permissions:
checks: write

Expand All @@ -44,17 +31,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
default: true
- name: Install cargo-audit
uses: actions-rs/[email protected]
with:
crate: cargo-audit
version: latest
use-tool-cache: true
- name: Audit
run: cargo audit --deny warnings

Expand All @@ -74,19 +50,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
default: true

- name: Install cargo-all-features
uses: actions-rs/[email protected]
with:
crate: cargo-all-features
version: latest
use-tool-cache: true

- name: Build
run: cargo build-all-features

Expand Down

0 comments on commit 2efe592

Please sign in to comment.