Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian committed Sep 6, 2024
1 parent aced0f9 commit edb2130
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 35 deletions.
46 changes: 22 additions & 24 deletions .github/workflows/rust-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,32 @@ on:
jobs:
fmt:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Run cargo fmt
run: cargo fmt -- --check
- name: Run cargo fmt
run: cargo fmt -- --check

clippy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Run cargo clippy
run: cargo clippy --all-targets --workspace -- -D warnings
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Run cargo clippy
run: cargo clippy --all-targets --workspace -- -D warnings
21 changes: 10 additions & 11 deletions .github/workflows/rust-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,16 @@ on:
jobs:
tests:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Run tests
run: cargo test --all-targets --workspace
- name: Run tests
run: cargo test --all-targets --workspace

0 comments on commit edb2130

Please sign in to comment.