Skip to content

Commit

Permalink
Added a CI workflow to run lint checks
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenengler committed Jun 23, 2024
1 parent 15422c7 commit 5cdddd3
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Syntax reference:
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions

name: Lint
permissions: read-all

defaults:
run:
shell: bash

on:
push:
branches: [main]
pull_request:
types: [opened, synchronize]

jobs:
testing:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Clippy
run: |
cargo clippy -- -Dwarnings
- name: Docs
run: |
RUSTDOCFLAGS='-D warnings' cargo doc
- name: Lockfile
run: |
cargo update --locked --workspace
- name: Rust
run: |
cargo fmt -- --check

0 comments on commit 5cdddd3

Please sign in to comment.