From 062d03ff532e76b00cedbe6cad0a2908d19996c4 Mon Sep 17 00:00:00 2001 From: Michal S Date: Mon, 5 Sep 2022 17:40:40 +0100 Subject: [PATCH] Move to pretty predefined actions --- .github/workflows/test.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2f16623..637d35b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,10 +7,22 @@ on: branches: [ main ] jobs: - test: + formatting: + name: cargo fmt runs-on: ubuntu-latest steps: - - name: Clippy - uses: actions-rs/clippy-check@v1.0.7 + - uses: actions/checkout@v3 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + components: rustfmt - name: Format uses: actions-rust-lang/rustfmt@v1.0.0 + clippy: + name: cargo clippy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - run: rustup component add clippy + - uses: actions-rs/clippy-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file