Update .forgejo/workflows/rust.yml
Some checks failed
Continuous integration / Rustfmt (push) Failing after 2s
Continuous integration / Clippy (push) Failing after 2s
Continuous integration / Check (push) Failing after 2s
Continuous integration / Test Suite (push) Failing after 2s
Continuous integration / build (push) Failing after 2s
Some checks failed
Continuous integration / Rustfmt (push) Failing after 2s
Continuous integration / Clippy (push) Failing after 2s
Continuous integration / Check (push) Failing after 2s
Continuous integration / Test Suite (push) Failing after 2s
Continuous integration / build (push) Failing after 2s
This commit is contained in:
parent
76866e5b4f
commit
058ff012b8
1 changed files with 41 additions and 9 deletions
|
@ -1,14 +1,46 @@
|
|||
---
|
||||
name: "Test Suite"
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
on: [push, pull_request]
|
||||
|
||||
name: Continuous integration
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: cargo test
|
||||
check:
|
||||
name: Check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
|
||||
- run: cargo test --all-features
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
- run: cargo check
|
||||
|
||||
test:
|
||||
name: Test Suite
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
- run: cargo test
|
||||
|
||||
fmt:
|
||||
name: Rustfmt
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
- run: rustup component add rustfmt
|
||||
- run: cargo fmt --all -- --check
|
||||
|
||||
clippy:
|
||||
name: Clippy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
- run: rustup component add clippy
|
||||
- run: cargo clippy -- -D warnings
|
||||
|
||||
build:
|
||||
name: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
- run: cargo build
|
Loading…
Reference in a new issue