Skip to content

refactor: strip non-core features and trim to new + list #120

refactor: strip non-core features and trim to new + list

refactor: strip non-core features and trim to new + list #120

Workflow file for this run

name: CI
on:
push:
branches: [main]
paths:
- "src/**"
- "examples/**"
- "Cargo.toml"
- "Cargo.lock"
- "justfile"
- ".github/workflows/ci.yml"
pull_request:
branches: [main]
paths:
- "src/**"
- "examples/**"
- "Cargo.toml"
- "Cargo.lock"
- "justfile"
- ".github/workflows/ci.yml"
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -Dwarnings
jobs:
check:
name: Check, Lint & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: extractions/setup-just@v2
- uses: Swatinem/rust-cache@v2
- name: Run checks
run: just check
examples:
name: Example Template Smoke Tests
runs-on: ubuntu-latest
needs: [check]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: extractions/setup-just@v2
- uses: Swatinem/rust-cache@v2
- name: Build diecut
run: just build
- name: Test examples/python-pkg
run: ./target/release/diecut new examples/python-pkg --defaults --data author=CI --output /tmp/out-python-pkg
- name: Test examples/rust-cli
run: ./target/release/diecut new examples/rust-cli --defaults --data author=CI --output /tmp/out-rust-cli