diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 5e9bde0bd..d1048774c 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -29,10 +29,5 @@ jobs: uses: Swatinem/rust-cache@v1 with: key: qsv-cache - - name: Check formatting - uses: actions-rs/cargo@v1 - with: - command: fmt - args: -- --check - name: Run tests run: cargo test --verbose --locked --features=apply,fetch,foreach,generate,lua,python,full diff --git a/.github/workflows/rustfmt.yml b/.github/workflows/rustfmt.yml new file mode 100644 index 000000000..5ac81fcf3 --- /dev/null +++ b/.github/workflows/rustfmt.yml @@ -0,0 +1,23 @@ +name: Rustfmt + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Check formatting + uses: actions-rs/cargo@v1 + with: + command: fmt + args: -- --check