From 3710a9c5c2befdca65b0867d0813180a4aa5d66c Mon Sep 17 00:00:00 2001 From: Luro02 <24826124+Luro02@users.noreply.github.com> Date: Sun, 29 Mar 2020 11:33:16 +0200 Subject: [PATCH] change github actions --- .github/workflows/rust.yml | 48 ++++++++++++++++---------------------- 1 file changed, 20 insertions(+), 28 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 2e637e0..de17cff 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,44 +1,36 @@ -name: Rust +name: rust # Trigger the workflow on push or pull request on: [push, pull_request] jobs: - ci: + rustfmt: + name: rustfmt runs-on: ubuntu-latest - - strategy: - matrix: - rust: - - stable - - beta - - nightly - steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: ${{ matrix.rust }} + toolchain: nightly override: true - components: rustfmt, clippy - - - uses: actions-rs/cargo@v1 - with: - command: build - args: --all-features - - - uses: actions-rs/cargo@v1 - with: - command: test - args: --all-features - - - uses: actions-rs/cargo@v1 - with: - command: doc - args: --all-features - + components: rustfmt - uses: actions-rs/cargo@v1 with: command: fmt args: --all -- --check + + clippy: + name: clippy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + override: true + components: clippy + - uses: actions-rs/cargo@v1 + with: + command: clippy