Skip to content

Commit

Permalink
Create audit.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
trollLemon committed Aug 28, 2023
1 parent 1d3a0bf commit a42d71b
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Clippy and Rustfmt

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install Clippy
run: rustup component add clippy
- name: Install Rustfmt
run: rustup component add rustfmt
- name: Check code with Clippy
run: cargo clippy -- -D warnings
- name: Check code with Rustfmt
run: cargo fmt -- --check

0 comments on commit a42d71b

Please sign in to comment.