feat: add support to variables in boolean attributes (#7) #47
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: | |
branches: [main] | |
paths: | |
- '.github/workflows/ci.yml' | |
- '**.rs' | |
- '**.toml' | |
pull_request: | |
paths: | |
- '.github/workflows/ci.yml' | |
- '**.rs' | |
- '**.toml' | |
jobs: | |
test-and-check: | |
name: Check code format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
components: rustfmt, clippy | |
override: true | |
- name: Check the format | |
run: cargo +nightly fmt --all -- --check | |
- name: Run clippy | |
run: cargo clippy --all-targets --all-features -- -D warnings -A clippy::upper_case_acronyms | |
- name: Check for deadlinks | |
run: | | |
cargo install cargo-deadlinks | |
cargo deadlinks --check-http || true | |
- name: Run tests | |
run: cargo test --no-fail-fast |