fileformats/.github/workflows/ci.yml
Théo LUDWIG aa8e289a2b
All checks were successful
ci / ci (1.74.0) (push) Successful in 55s
ci / ci (stable) (push) Successful in 38s
ci / lint-markdown (push) Successful in 10s
ci / lint-commit (push) Successful in 21s
ci / lint-general (push) Successful in 46s
chore: setup tools
2024-01-27 19:49:31 +01:00

67 lines
1.5 KiB
YAML

name: "ci"
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: "always"
jobs:
ci:
runs-on: "ubuntu-latest"
strategy:
matrix:
rust-version: ["1.74.0", "stable"]
steps:
- uses: "actions/checkout@v4.1.1"
- uses: "dtolnay/rust-toolchain@master"
with:
toolchain: "${{ matrix.rust-version }}"
components: "clippy, rustfmt"
- 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.1.1"
- uses: "DavidAnson/markdownlint-cli2-action@v15.0.0"
with:
config: ".markdownlint-cli2.jsonc"
globs: "**/*.md"
lint-commit:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4.1.1"
- uses: "wagoid/commitlint-github-action@v5.4.5"
with:
configFile: ".commitlintrc.json"
failOnWarnings: true
lint-general:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4.1.1"
- name: "Setup Node.js"
uses: "actions/setup-node@v4.0.1"
with:
node-version: "20.11.0"
- run: "npm install --global editorconfig-checker@5.1.2"
- run: "npm install --global prettier@3.2.4"
- run: "editorconfig-checker"
- run: "prettier . --check"