From cde9134815971d6747c88e2dc691f69e230fb6a1 Mon Sep 17 00:00:00 2001 From: Przemek Rzad Date: Wed, 29 May 2024 17:42:31 +0200 Subject: [PATCH] Run clippy and build docs on CI (#4) --- .github/workflows/ci.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 781f260..47b0aa4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,9 @@ on: jobs: ci: runs-on: ubuntu-latest + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true steps: - uses: actions/checkout@v3 @@ -34,7 +37,20 @@ jobs: large-packages: false swap-storage: false - - name: Check if it compiles - id: check-compilation - run: cargo check && cargo test + - name: Build the template + run: cargo build timeout-minutes: 90 + + - name: Run clippy + run: | + SKIP_WASM_BUILD=1 cargo clippy --all-targets --locked --workspace --quiet + SKIP_WASM_BUILD=1 cargo clippy --all-targets --all-features --locked --workspace --quiet + timeout-minutes: 30 + + - name: Run the tests + run: cargo test + timeout-minutes: 15 + + - name: Build the docs + run: cargo doc --all-features --workspace --no-deps + timeout-minutes: 15