fix(ci): string interpolation & use cargo deny action #172
Workflow file for this run
This file contains hidden or 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: | ||
|
Check failure on line 1 in .github/workflows/build.yml
|
||
| workflow_call: | ||
| inputs: | ||
| crate-name: | ||
| required: true | ||
| type: string | ||
| crate-path: | ||
| required: true | ||
| type: string | ||
| default-features: | ||
| required: false | ||
| type: string | ||
| jobs: | ||
| lint: | ||
| name: Check for Formatting/Linting/Semantic Issues | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v2 | ||
| - name: Setup Rust Environment (Cached) | ||
| uses: ./.github/actions/common/setup-rust-environment/ | ||
| - name: Install Formatting Dependencies | ||
| run: | | ||
| cargo install cargo-sort cargo-deny | ||
| rustup component add rustfmt clippy | ||
| working-directory: ${{ crate-path }} | ||
| - name: Check Formatting | ||
| run: cargo fmt -- --check | ||
| working-directory: ${{ crate-path }} | ||
| - name: Check Cargo.toml Sorting | ||
| run: cargo sort --check | ||
| working-directory: ${{ crate-path }} | ||
| - name: Check for Clippy Warnings | ||
| run: cargo clippy -p ${{ crate-name } --features ${{ default-features }} --no-deps | ||
| working-directory: ${{ crate-path }} | ||
| cargo-deny: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| checks: | ||
| - advisories | ||
| - bans | ||
| continue-on-error: ${{ matrix.checks == 'advisories' }} | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: EmbarkStudios/cargo-deny-action@v2 | ||
| with: | ||
| command: check ${{ matrix.checks }} | ||
| test: | ||
| name: Run Host Tests | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| # NOTE: Unsure why this is here | ||
| RUST_MIN_STACK: 8388608 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v2 | ||
| - name: Setup Rust Environment (Cached) | ||
| uses: ./.github/actions/common/setup-rust-environment/ | ||
| - name: "Run Host Tests" | ||
| uses: actions-rs/cargo@v1 | ||
| with: | ||
| command: make | ||
| args: test-host | ||