Skip to content

Commit

Permalink
fix: unmainted code quality workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorfdl committed Jun 18, 2024
1 parent 147e6ec commit 92fcaf8
Showing 1 changed file with 9 additions and 27 deletions.
36 changes: 9 additions & 27 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,39 +21,21 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Cache cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Install Rust toolchain and components
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy

- name: Setup Cache
uses: Swatinem/rust-cache@v2

- name: Create empty .env file
run: touch .env

- name: Cargo build
run: cargo build --verbose

- name: Test
run: cargo test --verbose

- name: Lint
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings

- name: Format Check
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- name: Build and Test
run: |
cargo build --verbose
cargo test --verbose
cargo clippy -- -D warnings
cargo fmt -- --check

0 comments on commit 92fcaf8

Please sign in to comment.