Skip to content

Extract common Python code to toml-fmt-common #23

Extract common Python code to toml-fmt-common

Extract common Python code to toml-fmt-common #23

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