Skip to content

Commit

Permalink
chore: try updating github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
repnop committed Apr 16, 2024
1 parent fc376ef commit 4b4f2d6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 26 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
on: [push, pull_request]

name: Rust Lint

jobs:
Expand All @@ -8,20 +8,17 @@ jobs:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: ["macos-latest", "ubuntu-latest", "windows-latest"]
fail-fast: false
matrix:
os: ["macos-latest", "ubuntu-latest", "windows-latest"]

steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
components: clippy

- name: Run clippy
Expand All @@ -32,15 +29,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

- name: Formatting check
run: cargo fmt --all -- --check

16 changes: 6 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,16 @@ jobs:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: ["macos-latest", "ubuntu-latest", "windows-latest"]
fail-fast: false
matrix:
os: ["macos-latest", "ubuntu-latest", "windows-latest"]

steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

- name: Run cargo test
run: cargo test --all-targets --all-features
run: cargo test --all-targets --all-features

0 comments on commit 4b4f2d6

Please sign in to comment.