fileformats/.github/workflows/ci.yml

39 lines
829 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"
- run: "rustc --version"
- 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"