mirror of
https://github.com/robertwayne/axum-htmx
synced 2025-12-16 20:55:17 +01:00
Update ci.yml
This commit is contained in:
parent
1daee5db36
commit
f58bed0af2
1 changed files with 28 additions and 39 deletions
23
.github/workflows/ci.yml
vendored
23
.github/workflows/ci.yml
vendored
|
|
@ -5,43 +5,32 @@ env:
|
|||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
branches: [main]
|
||||
pull_request: {}
|
||||
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
toolchain:
|
||||
- stable
|
||||
- nightly
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: ${{ matrix.toolchain }}
|
||||
toolchain: nightly
|
||||
components: clippy, rustfmt
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: run clippy
|
||||
run: cargo +nightly clippy --all-features -- -D warnings
|
||||
run: cargo clippy --all-features -- -D warnings
|
||||
- name: run formatter checks
|
||||
run: cargo +nightly fmt --all --check
|
||||
run: cargo fmt --all --check
|
||||
|
||||
test:
|
||||
needs: check
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
toolchain:
|
||||
- stable
|
||||
- nightly
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: ${{ matrix.toolchain }}
|
||||
toolchain: nightly
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: run tests
|
||||
run: cargo +nightly test --all-features
|
||||
run: cargo test --all-features
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue