You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jade/.github/workflows/test.yml

31 lines
753 B
YAML

name: Lint Code
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
formatting:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Format
uses: actions-rust-lang/rustfmt@v1.0.0
clippy:
name: cargo clippy
runs-on: ubuntu-latest
container: ghcr.io/crystal-linux/crystal:latest
steps:
- uses: actions/checkout@v1
- run: |
sudo pacman -Syu --needed --noconfirm
sudo pacman -S --noconfirm rust
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}