From ca40a8a73dc8c7886bdc640c980c9478bc2a2fe6 Mon Sep 17 00:00:00 2001 From: Gabriel Francisco Date: Wed, 23 Aug 2023 09:13:16 -0300 Subject: [PATCH] split code check action --- .github/workflows/publish.yml | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0cd8c39..607e039 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,6 +10,23 @@ env: MACOSX_DEPLOYMENT_TARGET: '10.13' jobs: + check: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup Rust + uses: dtolnay/rust-toolchain@stable + with: + toolchain: stable + + - name: Check formatting + run: cargo fmt --all --check + + - name: Clippy + run: cargo clippy + build: runs-on: ubuntu-latest @@ -31,12 +48,6 @@ jobs: - run: cargo install cargo-xwin - - name: Check formatting - run: cargo fmt --all --check - - - name: Clippy - run: cargo clippy - - name: Node install run: npm ci @@ -72,11 +83,6 @@ jobs: - uses: Swatinem/rust-cache@v2 - - run: cargo install cargo-xwin - - - name: Clippy - run: cargo clippy - - name: Node install run: npm ci