Skip to content

Commit

Permalink
add clippy and formatting to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
PgBiel committed Aug 18, 2024
1 parent 954962e commit 1b8194c
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,27 @@ name: Continuous integration
on: [push, pull_request]

jobs:
ci:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Check out CSL styles
run: |
cd ..
git clone --depth 1 https://github.com/citation-style-language/styles
- run: cargo build
- run: cargo test --features csl-json

checks:
name: Check clippy, formatting, and documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.80.0
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --workspace --all-targets --all-features
- run: cargo fmt --check --all
- run: cargo doc --workspace --no-deps

0 comments on commit 1b8194c

Please sign in to comment.