Only lint on stable.

This commit is contained in:
Sebastian Schmidt 2021-06-02 17:29:30 +03:00
parent 5544c27e8f
commit 4cb916f80c

View File

@ -15,18 +15,24 @@ jobs:
- name: Check - name: Check
command: check command: check
args: "" args: ""
components: ""
- name: Test - name: Test
command: test command: test
args: "" args: ""
- name: Lint components: ""
command: clippy
args: ""
include: include:
- toolchain: nightly - toolchain: nightly
command: command:
name: Format name: Format
command: fmt command: fmt
args: -- --check args: -- --check
components: rustfmt
- toolchain: stable
command:
name: Lint
command: clippy
args: ""
components: clippy
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -44,7 +50,7 @@ jobs:
toolchain: ${{ matrix.toolchain }} toolchain: ${{ matrix.toolchain }}
override: true override: true
default: true default: true
components: rustfmt, clippy components: ${{matrix.command.components}}
- name: ${{matrix.command.name}} - name: ${{matrix.command.name}}
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1