Skip to content

[pre-commit.ci] pre-commit autoupdate #34

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #34

Workflow file for this run

name: Test common
on:
workflow_dispatch:
push:
branches: ["main"]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rust-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy
- name: Lint rust code with clippy
run: cargo clippy -p common --all-targets -- -D warnings
rust-fmt:
runs-on: ubuntu-latest
defaults:
run:
working-directory: common
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Rust formatting check
run: cargo fmt -p common --check
rust-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Build library
run: cargo build -p common
rust-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo test -p common