29 lines
669 B
YAML
29 lines
669 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, master ]
|
|
pull_request:
|
|
branches: [ main, master ]
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: clippy, rustfmt
|
|
- name: Format check
|
|
run: cargo fmt --check
|
|
- name: Check
|
|
run: cargo check
|
|
- name: Test
|
|
run: cargo test --all-features
|
|
- name: Clippy
|
|
run: cargo clippy --all-targets --all-features -- -D warnings
|
|
- name: Build release
|
|
run: cargo build --release
|
|
- name: Verify binary
|
|
run: ./target/release/wipe --help
|