Skip to content

Add workspace metadata and use in all the subpackages #84

Add workspace metadata and use in all the subpackages

Add workspace metadata and use in all the subpackages #84

Workflow file for this run

name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install Rust toolchain
uses: moonrepo/setup-rust@v1
- name: Run cargo check
run: cargo check
test:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install Rust toolchain
uses: moonrepo/setup-rust@v1
with:
bins: cargo-nextest
- name: Run cargo nextest
run: cargo nextest run
- name: Run doc tests
run: cargo test --doc
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install Rust toolchain
uses: moonrepo/setup-rust@v1
with:
components: rustfmt
- name: Run cargo fmt
run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install Rust toolchain
uses: moonrepo/setup-rust@v1
with:
components: clippy
- name: Run cargo clippy
run: cargo clippy -- -D warnings