Merge pull request #57 from raiderrobert/release-please--branches--ma… #105
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |