Use lightweight checks for Toolkit feature and next changes
This commit is contained in:
@@ -1,17 +1,29 @@
|
||||
name: verify
|
||||
|
||||
# Pre-merge quality gate: clippy + build + tests + microbenchmarks + the headless
|
||||
# UI self-test, plus a best-effort dependency audit. Runs on pull requests and on
|
||||
# pushes to any branch EXCEPT main (main is gated by release.yml, which repeats
|
||||
# these checks before it cuts a release -- so no work is duplicated on main).
|
||||
# Full quality gate for pull requests to main. Feature pushes and pull requests
|
||||
# to next receive source checks; both release branches keep their own gates.
|
||||
on:
|
||||
pull_request:
|
||||
branches-ignore: [next]
|
||||
branches: [main, next]
|
||||
push:
|
||||
branches-ignore: [main, next]
|
||||
|
||||
jobs:
|
||||
source:
|
||||
if: github.event_name == 'push' || github.base_ref == 'next'
|
||||
runs-on: alkane-ci
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Source checks
|
||||
run: |
|
||||
cargo test -p alkane-artifacts -p alkane-flash -p alkane-cli --offline
|
||||
- name: Clean generated Toolkit build
|
||||
if: always()
|
||||
run: python3 ci/cleanup-generated.py
|
||||
|
||||
verify:
|
||||
if: github.event_name == 'pull_request' && github.base_ref == 'main'
|
||||
runs-on: alkane-ci
|
||||
env:
|
||||
CARGO_TARGET_DIR: target
|
||||
|
||||
Reference in New Issue
Block a user