Skip to content

Commit

Permalink
ci: run clippy and fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
moldhouse committed Dec 9, 2024
1 parent 74e4442 commit b850f78
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,26 @@ on:
branches: [ main ]

jobs:
build:
lints:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build
- name: Run tests
env:
AA_API_TOKEN: ${{ secrets.AA_API_TOKEN }}
AA_BASE_URL: ${{ secrets.AA_BASE_URL }}
run: cargo test
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- run: cargo fmt -- --check
- run: cargo clippy -- -D warnings

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build
- name: Run tests
env:
AA_API_TOKEN: ${{ secrets.AA_API_TOKEN }}
AA_BASE_URL: ${{ secrets.AA_BASE_URL }}
run: cargo test

0 comments on commit b850f78

Please sign in to comment.