From a42d71bf97c75d86cece74c176604f075739163d Mon Sep 17 00:00:00 2001 From: Haydn Tamura Date: Mon, 28 Aug 2023 11:25:40 -0700 Subject: [PATCH] Create audit.yml --- .github/workflows/audit.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/audit.yml diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml new file mode 100644 index 0000000..8cb9e48 --- /dev/null +++ b/.github/workflows/audit.yml @@ -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