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
67
.github/workflows/ci.yml
vendored
67
.github/workflows/ci.yml
vendored
|
|
@ -1,47 +1,36 @@
|
||||||
name: ci
|
name: ci
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: [main]
|
||||||
- main
|
pull_request: {}
|
||||||
pull_request: {}
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
steps:
|
||||||
matrix:
|
- uses: actions/checkout@v4
|
||||||
toolchain:
|
- uses: dtolnay/rust-toolchain@master
|
||||||
- stable
|
with:
|
||||||
- nightly
|
toolchain: nightly
|
||||||
steps:
|
components: clippy, rustfmt
|
||||||
- uses: actions/checkout@v4
|
- uses: Swatinem/rust-cache@v2
|
||||||
- uses: dtolnay/rust-toolchain@master
|
- name: run clippy
|
||||||
with:
|
run: cargo clippy --all-features -- -D warnings
|
||||||
toolchain: ${{ matrix.toolchain }}
|
- name: run formatter checks
|
||||||
components: clippy, rustfmt
|
run: cargo fmt --all --check
|
||||||
- uses: Swatinem/rust-cache@v2
|
|
||||||
- name: run clippy
|
|
||||||
run: cargo +nightly clippy --all-features -- -D warnings
|
|
||||||
- name: run formatter checks
|
|
||||||
run: cargo +nightly fmt --all --check
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
needs: check
|
needs: check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
steps:
|
||||||
matrix:
|
- uses: actions/checkout@v4
|
||||||
toolchain:
|
- uses: dtolnay/rust-toolchain@master
|
||||||
- stable
|
with:
|
||||||
- nightly
|
toolchain: nightly
|
||||||
steps:
|
- uses: Swatinem/rust-cache@v2
|
||||||
- uses: actions/checkout@v4
|
- name: run tests
|
||||||
- uses: dtolnay/rust-toolchain@master
|
run: cargo test --all-features
|
||||||
with:
|
|
||||||
toolchain: ${{ matrix.toolchain }}
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
|
||||||
- name: run tests
|
|
||||||
run: cargo +nightly test --all-features
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue