fix actions

This commit is contained in:
DavidOnTop 2024-08-13 09:23:31 +02:00
parent dd0f210f64
commit ed547c757a
No known key found for this signature in database
GPG key ID: 5D05538A45D5149F
12 changed files with 47 additions and 63 deletions

42
.forgejo/workflows/ci-tests.yml Executable file
View file

@ -0,0 +1,42 @@
name: checks
on:
push:
branches:
- "main"
- "feat/*"
pull_request:
pull_request_target:
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
jobs:
test:
runs-on: self-hosted
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Run tests
run: cargo test --verbose --all-features --workspace --tests --bins --lib
- name: Run doctests
run: cargo test --verbose --all-features --workspace --doc
clippy:
runs-on: self-hosted
timeout-minutes: 10
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Run clippy
run: cargo clippy -- -D warnings
format:
runs-on: self-hosted
timeout-minutes: 10
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Run cargo fmt
run: cargo fmt --all -- --check