mirror of
https://github.com/kuhyx/screen-locker.git
synced 2026-11-10 21:07:14 +01:00
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
pre-commit / pre-commit (push) Waiting to run
Tests / test (push) Waiting to run
Tests / lock-popup-safety (push) Waiting to run
release-apk / release (APK) (push) Waiting to run
The wake_alarm_skip rung has been dead since the repos split: it read ../wake_alarm/wake_state.json (no longer a path) for a skip_workout field nothing ever wrote, and answered "no skip" for a year without an error. It now reads ~/.local/state/wake_alarm/morning_session.json, written HMAC-signed by wake-alarm every two minutes through the morning, and the whole decision is: signature ok, dated today, now < exempt_until. A completed-in-time morning defers the lock to 11:00; a live one until min(start + 90 min, 09:30); nothing else changes the ladder. The enforce path waits up to 30 s for a freshly booted PC's refresher; status paths never wait. Takes Flutter 3.47.5. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tp54ewdXRLaimUuT8LgYyn
58 lines
2.1 KiB
YAML
58 lines
2.1 KiB
YAML
name: pre-commit
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
pre-commit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
# Hooks here delegate to the shared gates in kuhyx/utils. Without this
|
|
# checkout they exit 1 with "shared gate not found at
|
|
# /home/runner/utils/..." -- which is what this workflow was doing on
|
|
# every run since those hooks were added.
|
|
- name: Check out the shared gates
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: kuhyx/utils
|
|
path: .utils
|
|
- name: Point the delegates at that checkout
|
|
run: echo "UTILS_ROOT=$GITHUB_WORKSPACE/.utils" >> "$GITHUB_ENV"
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.x"
|
|
# The flutter-analyze pre-commit hook shells out to `flutter analyze` in
|
|
# stronglift_replacement/workout_app. Pin to the version the app is
|
|
# developed against (Dart SDK ^3.12.2) so CI's analyzer matches local.
|
|
- uses: subosito/flutter-action@v2
|
|
with:
|
|
flutter-version: 3.47.5
|
|
channel: stable
|
|
cache: true
|
|
# The web-lint / web-typecheck / web-coverage hooks run npm inside web/.
|
|
# Without its installed packages `tsc --build` cannot find the
|
|
# 'vite/client' and 'node' type libraries and fails with TS2688 -- which
|
|
# is what this workflow had been doing on every run since the status UI
|
|
# landed in 8f91158.
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "24.21.0"
|
|
cache: npm
|
|
cache-dependency-path: web/package-lock.json
|
|
- name: Install status-UI packages
|
|
run: npm ci
|
|
working-directory: web
|
|
- name: Install dependencies
|
|
run: pip install -r requirements.txt
|
|
# analyze needs resolved packages (.dart_tool); the hook runs analyze
|
|
# only, so fetch deps here first.
|
|
- name: Resolve Flutter packages
|
|
run: flutter pub get
|
|
working-directory: stronglift_replacement/workout_app
|
|
- uses: pre-commit/action@v3.0.1
|