Some checks failed
check / check (push) Failing after 32s
Routes the release build/test steps and a new fast pre-release check.yml through ci/build.sh, which delegates to bread-ecosystem's pinned shared Containerfile/build.sh instead of building against whatever the bare hestia runner happens to have installed. Follows the pattern already proven in breadpad. No extra ci/deps.txt: bread's system_deps (systemd-libs, openssl, zlib) are all already pulled in transitively by the shared image's base + git packages.
24 lines
695 B
YAML
24 lines
695 B
YAML
name: check
|
|
|
|
# Fast-fail lint/test on short-lived work branches, before it ever reaches
|
|
# main and triggers a dev-track release build.
|
|
on:
|
|
push:
|
|
branches: ['feature/**', 'fix/**']
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: [self-hosted, hestia]
|
|
steps:
|
|
- name: checkout
|
|
run: |
|
|
set -euo pipefail
|
|
rm -rf src && mkdir src
|
|
git clone --branch "${GITHUB_REF_NAME}" --depth 1 \
|
|
"https://git.breadway.dev/${GITHUB_REPOSITORY}.git" src
|
|
|
|
- name: clippy
|
|
run: cd src && bash ci/build.sh cargo clippy --workspace --all-targets --locked -- -D warnings
|
|
|
|
- name: test
|
|
run: cd src && bash ci/build.sh cargo test --workspace --locked
|