Update CI (#254)

This commit is contained in:
Yota Toyama
2023-05-20 20:08:06 -07:00
committed by GitHub
parent 8f73f3d63a
commit ec67abe1ef
5 changed files with 79 additions and 18 deletions

34
.github/workflows/lint.yaml vendored Normal file
View File

@@ -0,0 +1,34 @@
name: lint
on:
push:
branches:
- main
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: Swatinem/rust-cache@v2
- run: cargo clippy -- -D warnings
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: cargo fmt -- --check
spell-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: streetsidesoftware/cspell-action@main
with:
files: "**/*.{md,rs}"
readme:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: lycheeverse/lychee-action@v1
with:
fail: true