mCaptcha/.github/workflows/clippy-fmt.yml
2023-10-16 20:30:41 +05:30

39 lines
863 B
YAML

name: Lint
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- master
- db-abstract
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Ensure rustfmt is installed and setup problem matcher
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Rustfmt Check
uses: actions-rust-lang/rustfmt@v1
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy
- uses: actions/setup-node@v2
with:
node-version: "18.0.0"
- name: Build frontend
run: make frontend
- name: clippy Check
run: cargo clippy --workspace --tests --all-features