Skip to content

Add CI tests for cargo xtask #3

Add CI tests for cargo xtask

Add CI tests for cargo xtask #3

Workflow file for this run

on: [push, pull_request]
name: continuous integration
jobs:
test:
name: test
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected]
- uses: dtolnay/rust-toolchain@stable
- run: (cd xtask && cargo check --all-features)
- run: (cd xtask && cargo test --release --all-features)
- run: cargo xtask -h
- run: cargo xtask generate-uid -h >/dev/null
- run: test 40 -eq $(cargo xtask generate-uid -n | wc -c)
- run: test 41 -eq $(cargo xtask generate-uid | wc -c)
fmt:
name: rustfmt
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected]
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: (cd xtask && cargo fmt --all -- --check)