diff --git a/.github/workflows/check-rustfmt.yaml b/.github/workflows/check-rustfmt.yaml new file mode 100644 index 0000000..12a84e7 --- /dev/null +++ b/.github/workflows/check-rustfmt.yaml @@ -0,0 +1,11 @@ +name: check-rustfmt +on: pull_request +jobs: + format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ github.head_ref }} + - name: cargo-fmt + run: cargo fmt -- --check