manplan-2 feature: could we allow for rules yaml to be driven by dot … #21
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
name: 'CI' | |
on: | |
push: | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
permissions: | |
checks: write | |
pull-requests: write | |
env: | |
CARGO_INCREMENTAL: 0 | |
RUSTFLAGS: -Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort | |
RUSTDOCFLAGS: -Cpanic=abort | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
override: true | |
toolchain: nightly | |
components: clippy | |
- name: Cache dependencies | |
uses: Swatinem/rust-cache@v1 | |
- name: Build | |
run: cargo build --locked --verbose | |
- name: Test | |
run: | | |
cargo install cargo2junit grcov rust-covfix; | |
cargo test $CARGO_OPTIONS -- -Z unstable-options --format json | cargo2junit > results.xml; | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
if: always() | |
with: | |
files: | | |
results.xml | |
- name: Check format | |
run: | | |
rustup component add rustfmt --toolchain nightly-x86_64-unknown-linux-gnu | |
cargo fmt -- --check | |
- run: rustup component add clippy | |
- uses: actions-rs/clippy-check@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --all-features -- -D warnings |