Skip to content

fix(ci): string interpolation & use cargo deny action #172

fix(ci): string interpolation & use cargo deny action

fix(ci): string interpolation & use cargo deny action #172

Workflow file for this run

on:

Check failure on line 1 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

(Line: 29, Col: 28): Unrecognized named-value: 'crate-path'. Located at position 1 within expression: crate-path, (Line: 33, Col: 28): Unrecognized named-value: 'crate-path'. Located at position 1 within expression: crate-path, (Line: 37, Col: 28): Unrecognized named-value: 'crate-path'. Located at position 1 within expression: crate-path, (Line: 40, Col: 14): Unexpected symbol: '}'. Located at position 12 within expression: crate-name } --features ${{ default-features, (Line: 41, Col: 28): Unrecognized named-value: 'crate-path'. Located at position 1 within expression: crate-path
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