Add default title to name one of #46
Workflow file for this run
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: netwopenapi build | |
on: | |
pull_request: | |
branches: [ main ] | |
paths: | |
- "**.rs" | |
- "**Cargo.toml" | |
push: | |
branches: | |
- main | |
paths: | |
- "**.rs" | |
- "**Cargo.toml" | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
test: | |
strategy: | |
matrix: | |
crate: | |
- netwopenapi | |
- netwopenapi-core | |
- netwopenapi-gen | |
- netwopenapi-gen-test | |
- netwopenapi-models | |
fail-fast: true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Check format | |
run: | | |
rustup component add rustfmt | |
cargo fmt --all --check --package ${{ matrix.crate }} | |
- name: Check cranky | |
run: | | |
rustup component add clippy | |
cargo install cargo-cranky --force | |
cargo cranky --no-deps --all-features --tests --package ${{ matrix.crate }} -- -D warnings -D clippy::print_stdout | |
- name: Run tests | |
run: | | |
cargo test --all-features --package ${{ matrix.crate }} |