Skip CI tests for changesets that cannot affect them
CI / test (push) Successful in 48s

This commit is contained in:
raucao committed 2026-12-01 17:42:41 +04:00
1 parent e19fd05ed6
commit d443494613
3 files changed
+48 -5

No files matched your search

+33
View File
@@ -13,9 +13,42 @@
# database at run time, so the job still needs network.
name: CI
# Which changes are worth a run. A change that touches only prose, packaging or
# release tooling cannot fail `cargo test`, `clippy` or `cargo deny`, so it
# starts no run — the post-release commit, which only rewrites
# build-aux/aur/regent/PKGBUILD, used to burn a full job on every release.
#
# This is a deny-list on purpose: an allow-list (`paths:`) would silently stop
# testing the day a new source directory appears, while a deny-list can only
# ever run CI too often.
#
# Deliberately *not* ignored: `data/**` (data/event-kinds.tsv is compiled in
# via `include_str!`), `meson.build`/`meson.options` (build inputs) and
# `.gitea/**` (this workflow). Gitea skips path filtering for tag pushes, so the
# release commit is still tested through its tag.
#
# If a required status check is ever configured for this repository, drop the
# `pull_request` filter: a PR that only touches ignored paths would then never
# report a status and could not be merged.
on:
push:
paths-ignore:
- '**/*.md'
- 'doc/**'
- 'LICENSE'
- 'build-aux/**'
- '.ngit/**'
- '.agents/**'
- 'skills-lock.json'
pull_request:
paths-ignore:
- '**/*.md'
- 'doc/**'
- 'LICENSE'
- 'build-aux/**'
- '.ngit/**'
- '.agents/**'
- 'skills-lock.json'
jobs:
test:
+9 -3
View File
@@ -134,9 +134,15 @@ the UI is tested. `build-aux/deploy-dev.sh` runs on the build host,
- **CI** (`.gitea/workflows/ci.yaml`, Gitea Actions) runs `cargo test --locked`,
`cargo clippy --all-targets --locked -- -D warnings` and `cargo deny check`
(`deny.toml`). The job runs on the **`regent-ci` runner**, whose label maps to
the image built from `build-aux/ci/Dockerfile` (`build-aux/ci/build-image.sh`
builds and pushes it to the Gitea registry), so the workflow installs nothing.
(`deny.toml`). `push` and `pull_request` are filtered by `paths-ignore`: a
change that touches only prose (`**/*.md`, `doc/**`), `build-aux/**`
(packaging and release tooling) or the Nostr/agent metadata starts no run, so
the post-release commit — which only rewrites `build-aux/aur/regent/PKGBUILD`
— no longer burns a job. A **tag push ignores the filter**, so the release
commit is still tested through its tag. The job runs on the **`regent-ci`
runner**, whose label maps to the image built from `build-aux/ci/Dockerfile`
(`build-aux/ci/build-image.sh` builds and pushes it to the Gitea registry), so
the workflow installs nothing.
The image is **Arch-based** because Regent's `v4_24`/`v1_10` crate features
want GTK ≥ 4.23 / libadwaita ≥ 1.10 — newer than the latest stable GNOME
release (GNOME 50 ships GTK 4.22), so the old `ubuntu-latest` job and the GNOME
+6 -2
View File
@@ -93,8 +93,12 @@ dbus-run-session -- build-aux/acceptance.sh
Gitea Actions runs `cargo test --locked`,
`cargo clippy --all-targets --locked -- -D warnings` and `cargo deny check` on
every push and pull request (`.gitea/workflows/ci.yaml`). The job runs on the
`regent-ci` runner, which is registered with the label
push and pull request (`.gitea/workflows/ci.yaml`), except for changes that
cannot affect them: `paths-ignore` skips prose (`**/*.md`, `doc/**`),
`build-aux/**` (packaging and release tooling) and the Nostr/agent metadata, so
the post-release commit — which only rewrites the AUR recipe — starts no run. A
tag push ignores the filter, so the release commit is still tested through its
tag. The job runs on the `regent-ci` runner, which is registered with the label
```
regent-ci:docker://gitea.kosmos.org/raucao/regent-ci:latest