Merge pull request #6 from paritytech/dependabot/cargo/rustix-0.36.17 #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: Check Set-Up & Build | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
branches: | |
workflow_dispatch: | |
jobs: | |
rustfmt: | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
components: rustfmt | |
- uses: actions/checkout@v3 | |
- name: Cargo fmt | |
uses: actions-rs/cargo@v1 | |
with: | |
toolchain: nightly | |
command: fmt | |
args: --all -- --check | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
- name: Check Build | |
run: | | |
cargo build --workspace --release | |
clippy: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
components: rustfmt | |
- name: Cargo clippy | |
uses: actions-rs/cargo@v1 | |
with: | |
toolchain: stable | |
command: clippy | |
args: --workspace --all-targets | |
test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
- name: Run tests | |
run: cargo test --workspace --verbose | |