mirror of
https://github.com/pezkuwichain/pez-minimal-template.git
synced 2026-04-22 03:18:01 +00:00
Run clippy and build docs on CI (#4)
This commit is contained in:
@@ -11,6 +11,9 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
ci:
|
ci:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
@@ -34,7 +37,20 @@ jobs:
|
|||||||
large-packages: false
|
large-packages: false
|
||||||
swap-storage: false
|
swap-storage: false
|
||||||
|
|
||||||
- name: Check if it compiles
|
- name: Build the template
|
||||||
id: check-compilation
|
run: cargo build
|
||||||
run: cargo check && cargo test
|
|
||||||
timeout-minutes: 90
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user