From 20e8a1d7b74c0b6712d84687d9041dee1ea760b5 Mon Sep 17 00:00:00 2001 From: dr-frmr Date: Wed, 20 Dec 2023 17:59:11 -0500 Subject: [PATCH] add formatting workflow --- .github/workflows/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..d0f42c7 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,15 @@ +name: Rustfmt + +on: push + +jobs: + format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@nightly + with: + components: rustfmt + - uses: mbrobbel/rustfmt-check@master + with: + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file