test / unit + widget + golden + a11y (push) Failing after 41s
test / integration_test (xvfb) (push) Has been skipped
test / bundle smoke (xvfb 5s) (push) Has been skipped
test / daemon subprocess + web WASM smoke (push) Has been skipped
test / dart doc (lib API) (push) Failing after 1m22s
Wraps the `dart doc --validate-links` step so any warning fails the job, not just hard errors. The previous step exited 0 even with broken doc refs and dangling README links — exactly the informational-mode drift that lets a clean board rot. Updates the CHANGELOG entry to describe the gate accurately (the earlier wording overstated `--validate-links`, which only prints). Co-Authored-By: Claude <noreply@anthropic.com>
93 lines
2.8 KiB
YAML
93 lines
2.8 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
|
|
- name: dart doc --validate-links (fail on warning)
|
|
run: |
|
|
set -o pipefail
|
|
dart doc --validate-links 2>&1 | tee dartdoc.log
|
|
if grep -q "^ warning:" dartdoc.log; then
|
|
echo "::error::dartdoc emitted warnings — see log above"
|
|
exit 1
|
|
fi
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: dart-api-docs
|
|
path: doc/api/
|