From 1d96ced45c9140aa5d192e1272909c1f8553f068 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Wed, 2 Jun 2021 17:21:55 +0300 Subject: [PATCH] Format only on nightly. --- .github/workflows/ci.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 419b280..a1a6789 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,12 +18,15 @@ jobs: - name: Test command: test args: "" - - name: Format - command: fmt - args: -- --check - name: Lint command: clippy args: "" + include: + - toolchain: nightly + command: + name: Format + command: fmt + args: -- --check steps: - uses: actions/checkout@v2 @@ -39,6 +42,8 @@ jobs: - uses: actions-rs/toolchain@v1 with: toolchain: ${{ matrix.toolchain }} + override: true + default: true - name: ${{matrix.command.name}} uses: actions-rs/cargo@v1