Makefile grows targets for each test layer (test, test-a11y, test-integration, test-e2e, test-all), the coverage + smoke-bundle helpers, and the UI harness (ui-dev, ui-stop, ui-smoke). push-check now runs `test + test-a11y` — fast pre-push gate under 90s. ci/coverage.sh is renamed to ci/test_coverage.sh so it matches the `test_*.sh` naming of the other layer scripts and sidesteps the repo's `coverage.*` gitignore pattern (intended for coverage output files like coverage.lcov, not scripts). Co-Authored-By: Claude <noreply@anthropic.com>
72 lines
2.1 KiB
YAML
72 lines
2.1 KiB
YAML
# Gitea Actions workflow for clide.
|
|
#
|
|
# NOT YET ACTIVATED. Gitea Actions must be enabled in the instance
|
|
# settings before this runs; until then the file is just a ready-made
|
|
# pipeline Claude + the user can review.
|
|
#
|
|
# When the repo eventually lands on GitHub, copy this file verbatim to
|
|
# `.github/workflows/test.yml` — Gitea Actions consumes GitHub-Actions
|
|
# syntax, so no rewrite is needed.
|
|
|
|
name: test
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
unit:
|
|
name: unit + widget + golden + a11y
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: subosito/flutter-action@v2
|
|
with: { channel: stable, cache: true }
|
|
- run: dart pub get
|
|
- run: (cd app && flutter pub get)
|
|
- run: ci/test.sh
|
|
- run: ci/test_a11y.sh
|
|
- run: ci/test_coverage.sh
|
|
|
|
integration:
|
|
name: integration_test (xvfb)
|
|
runs-on: ubuntu-latest
|
|
needs: unit
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: subosito/flutter-action@v2
|
|
with: { channel: stable, cache: true }
|
|
- run: sudo apt-get update && sudo apt-get install -y xvfb ninja-build libgtk-3-dev
|
|
- run: dart pub get
|
|
- run: (cd app && flutter pub get)
|
|
- uses: coactions/setup-xvfb@v1
|
|
with: { run: ci/test_integration.sh }
|
|
|
|
startup-bundle:
|
|
name: bundle smoke (xvfb 5s)
|
|
runs-on: ubuntu-latest
|
|
needs: unit
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: subosito/flutter-action@v2
|
|
with: { channel: stable, cache: true }
|
|
- run: sudo apt-get update && sudo apt-get install -y xvfb ninja-build libgtk-3-dev
|
|
- run: dart pub get
|
|
- run: (cd app && flutter pub get)
|
|
- run: ci/smoke_bundle.sh
|
|
|
|
e2e:
|
|
name: daemon subprocess + web WASM smoke
|
|
runs-on: ubuntu-latest
|
|
needs: unit
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: subosito/flutter-action@v2
|
|
with: { channel: stable, cache: true }
|
|
- uses: actions/setup-node@v4
|
|
with: { node-version: 20 }
|
|
- run: dart pub get
|
|
- run: (cd app && flutter pub get)
|
|
- run: (cd tools/ui && npm install && npx playwright install --with-deps chromium)
|
|
- run: ci/test_e2e.sh
|