mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-11-16 15:27:46 +00:00
run checks in different CI
This commit is contained in:
parent
cb6c49d189
commit
b470a00f31
1 changed files with 18 additions and 5 deletions
23
.github/workflows/rust.yml
vendored
23
.github/workflows/rust.yml
vendored
|
@ -25,10 +25,9 @@ jobs:
|
|||
matrix:
|
||||
os: [macos-latest, ubuntu-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Test
|
||||
run: cargo test --all-features
|
||||
# Run typo checker separately.
|
||||
# This will fast-cancel other CI early if this fails.
|
||||
typo:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
@ -36,7 +35,7 @@ jobs:
|
|||
uses: actions/checkout@v4
|
||||
- name: Spell Check
|
||||
uses: crate-ci/typos@master
|
||||
build:
|
||||
clippy:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
|
@ -44,8 +43,22 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Clippy (fail on warnings)
|
||||
run: cargo clippy --all-features --all-targets -- -D warnings
|
||||
run: cargo clippy --all-features -- -D warnings
|
||||
check:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macos-latest, ubuntu-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Check compilation
|
||||
run: cargo check --all-features --verbose
|
||||
doc:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macos-latest, ubuntu-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Documentation
|
||||
run: cargo doc --workspace --all-features --no-deps
|
||||
run: cargo doc --all-features --no-deps
|
||||
|
|
Loading…
Reference in a new issue