fileformats/.github/workflows/ci.yml

41 lines
883 B
YAML
Raw Normal View History

2023-12-07 00:12:28 +01:00
name: "ci"
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: "always"
jobs:
ci:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- uses: "dtolnay/rust-toolchain@stable"
2023-12-07 00:44:30 +01:00
with:
components: "clippy, rustfmt"
2023-12-07 00:12:28 +01:00
- run: "rustc --version"
2023-12-07 00:44:30 +01:00
2023-12-07 00:12:28 +01:00
- run: "cargo build --verbose"
- run: "cargo test --verbose"
- run: "cargo clippy --verbose -- -D warnings"
- run: "cargo fmt -- --check"
lint-markdown:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- uses: "DavidAnson/markdownlint-cli2-action@v14"
with:
globs: "**/*.md"
config: ".markdownlint-cli2.jsonc"
lint-commit:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- uses: "wagoid/commitlint-github-action@v5"