mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-27 16:59:56 +01:00
next's work goes into main and the branch is retired, so its triggers, the nightly job that started the Workspace and full-test runs on next, and the cache and concurrency rules for next's runs are removed. The Workspace concurrency test checks the policy for main alone.
44 lines
1.9 KiB
YAML
44 lines
1.9 KiB
YAML
name: Suite themes
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [main]
|
|
paths: ['crates/theme/**', 'crates/theme-store/**', 'crates/atomic/**', 'Cargo.toml', 'Cargo.lock', '.github/workflows/theme.yml']
|
|
pull_request:
|
|
paths: ['crates/theme/**', 'crates/theme-store/**', 'crates/atomic/**', 'Cargo.toml', 'Cargo.lock', '.github/workflows/theme.yml']
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
theme:
|
|
timeout-minutes: 15
|
|
name: Theme lint, tests, WASM
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7.0.1
|
|
with:
|
|
# The token isn't needed after checkout; cargo runs build scripts and proc macros from
|
|
# dependencies, so don't leave it in .git/config for that third-party code to read.
|
|
persist-credentials: false
|
|
- uses: step-security/dtolnay-rust-toolchain@v1.0.0
|
|
with:
|
|
toolchain: stable
|
|
components: rustfmt, clippy
|
|
targets: wasm32-unknown-unknown
|
|
- run: cargo fmt -p craft-theme --check
|
|
- run: cargo clippy -p craft-theme --all-targets --all-features --locked -- -D warnings
|
|
- run: cargo clippy -p craft-theme --all-targets --locked -- -D warnings
|
|
- run: cargo test -p craft-theme --all-features --locked
|
|
- run: cargo check -p craft-theme --all-features --locked --target wasm32-unknown-unknown
|
|
- run: cargo check -p craft-ui --lib --locked
|
|
- run: cargo fmt -p craft-theme-store --check
|
|
- run: cargo clippy -p craft-theme-store --all-targets --all-features --locked -- -D warnings
|
|
- name: Docs (links and missing docs)
|
|
run: cargo doc -p craft-theme -p craft-theme-store --all-features --no-deps --locked
|
|
env:
|
|
RUSTDOCFLAGS: -D warnings
|
|
- run: cargo test -p craft-theme-store --all-features --locked
|
|
- run: cargo check -p craft-theme-store --all-features --locked --target wasm32-unknown-unknown
|