Skip to content

Add GitHub test workflow #1

Add GitHub test workflow

Add GitHub test workflow #1

Workflow file for this run

name: Test

Check failure on line 1 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

(Line: 9, Col: 7): Unexpected value 'run'
on: [ push ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install Rust
uses: dtolnay/rust-toolchain@1.91
run: echo "version=$(rustc -V)" >> "${GITHUB_OUTPUT}"
- name: Checkout Source
uses: actions/checkout@v6
- name: Lint
run: |
cargo fmt -- --check &&
cargo clippy -- --no-deps --deny warnings &&
cargo clippy --tests -- --no-deps --deny warnings
- name: Build
run: cargo build --locked
- name: Test
run: cargo test && cargo test --ignored