newsletter-to-web/sanitize-html-rs/.github/workflows/style.yml
Jacob Kiers 4e3f7b46da Add private fork of sanitize-html-rs
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-06-10 13:55:11 +02:00

25 lines
555 B
YAML

name: Style check
on: [push, pull_request]
jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install clippy
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all --all-features
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run fmt check
run: cargo fmt --all -- --check