Skip to content

ci: clean up workflow files (#68) #266

ci: clean up workflow files (#68)

ci: clean up workflow files (#68) #266

Workflow file for this run

name: Lint
on:
push:
branches:
- main
tags-ignore:
- '**'
paths-ignore:
- '**/*.md'
pull_request:
types: [opened, synchronize]
paths-ignore:
- '**/*.md'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.ref_name != 'main' }}
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: moonrepo/setup-rust@v1
with:
components: rustfmt,clippy,rust-docs
- name: Cargo fmt
run: cargo fmt -- --check
- name: Cargo docs
run: RUSTDOCFLAGS='-D warnings' cargo doc
- name: Clippy
run: cargo clippy -- -D warnings