Skip to content

README: add github actions test badge #2

README: add github actions test badge

README: add github actions test badge #2

Workflow file for this run

name: tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Build
run: cargo build --verbose
- name: Install cargo-hack
run: cargo install cargo-hack
- name: Test individual features
run: cargo hack test --each-feature
- name: Test with all features
run: cargo test --all-features
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- run: cargo fmt --all -- --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- run: cargo clippy --all-features -- -D warnings