mirror of
https://github.com/fabianlindfors/reshape.git
synced 2024-11-22 03:53:38 +03:00
a771c64299
* chore: changes from formatting on save * fix: usage of `node12 which is deprecated`
29 lines
536 B
YAML
29 lines
536 B
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Select Rust toolchain with Clippy
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
components: clippy
|
|
override: true
|
|
- name: Use cache for Rust dependencies
|
|
uses: Swatinem/rust-cache@v2
|
|
- name: Lint using Clippy
|
|
run: cargo clippy
|