From 0a8ecac3f1abd7473a92259c2354d960f7faec66 Mon Sep 17 00:00:00 2001 From: Sild Date: Wed, 13 Sep 2023 00:12:39 +0200 Subject: [PATCH] add sanity checks workflow --- .github/workflows/new_pr_to_main.yml | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/new_pr_to_main.yml diff --git a/.github/workflows/new_pr_to_main.yml b/.github/workflows/new_pr_to_main.yml new file mode 100644 index 0000000..db1a159 --- /dev/null +++ b/.github/workflows/new_pr_to_main.yml @@ -0,0 +1,29 @@ +on: + pull_request: + branches: + - main + +jobs: + cargo_clippy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + components: clippy + override: true + - uses: actions-rs/clippy-check@v1 + with: + token: ${{ secrets.WORKFLOW_TOKEN }} + args: --all-features + cargo_fmt: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + components: rustfmt + override: true + - run: rustfmt