Add tool to generate event UIDs and update README #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
(cd xtask && cargo test --release --all-features) | |
cargo xtask -h | |
cargo xtask generate-uid -h >/dev/null | |
test 40 -eq $(cargo xtask generate-uid -n | wc -c) | |
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) |