ci(actions): improve rust workflow

This commit is contained in:
EdJoPaTo
2021-04-30 11:01:56 +02:00
parent 8344fe213a
commit 1bdca46b4b
2 changed files with 27 additions and 22 deletions
+1 -22
View File
@@ -1,4 +1,4 @@
name: Rust
name: Test Rust
on:
push:
@@ -31,27 +31,6 @@ jobs:
command: clippy
args: --verbose --all-targets --all-features -- -D clippy::all -D clippy::pedantic
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v2
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
components: rustfmt
- name: Check format
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check --verbose
test:
name: Test ${{ matrix.os }} ${{ matrix.toolchain }}
runs-on: ${{ matrix.os }}
+26
View File
@@ -0,0 +1,26 @@
name: Rust Code Formatting
on:
push:
pull_request:
jobs:
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
components: rustfmt
- name: Check format
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check --verbose