Adds a docs job to .gitea/workflows/test.yml that runs `dart doc --validate-links` and uploads doc/api/ as an artefact. Runs in parallel with unit; documents the public lib/ surface and fails the build on broken references. Stays inert with the rest of the workflow until Gitea Actions activates per D-32. Co-Authored-By: Claude <noreply@anthropic.com>
86 lines
2.5 KiB
YAML
86 lines
2.5 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
|
|
|
|
docs:
|
|
name: dart doc (lib API)
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: subosito/flutter-action@v2
|
|
with: { channel: stable, cache: true }
|
|
- run: dart pub get
|
|
- run: dart doc --validate-links
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: dart-api-docs
|
|
path: doc/api/
|