ci: migrate Gitea workflows to .gitea and restore GitHub Pages in .github
Move the scheduled refresh and container-registry CI workflows into .gitea/workflows/ so Gitea Actions runs them natively. Update .github/workflows/ci.yml to build with BASE_PATH and deploy to GitHub Pages upon push from the mirror sync, removing the Gitea-specific container registry step. Update Dockerfile, .dockerignore, and test harness to test and copy workflows from .gitea/.
This commit is contained in:
1 parent
93a6513149
commit
0826f24db9
6 files changed
+261
-94
No files matched your search
+10
-1
@@ -993,7 +993,7 @@ describe("the workflows that drive the refresh", () => {
|
||||
// the site just quietly carries wrong or stale data. Asserting on the file
|
||||
// is the only offline way to keep them fixed.
|
||||
const read = (name: string) =>
|
||||
Bun.file(new URL(`../.github/workflows/${name}`, import.meta.url)).text();
|
||||
Bun.file(new URL(`../.gitea/workflows/${name}`, import.meta.url)).text();
|
||||
|
||||
test("ci.yml restores the refresh bookkeeping before it builds the feed", async () => {
|
||||
// lastConfirmedAt lives only in the gitignored snapshots/*.state.json. If
|
||||
@@ -1107,6 +1107,15 @@ describe("the workflows that drive the refresh", () => {
|
||||
expect(ci).toContain("staleSources");
|
||||
expect(ci).toContain("quietSources");
|
||||
});
|
||||
|
||||
test("GitHub ci.yml builds with BASE_PATH and deploys to Pages", async () => {
|
||||
const githubCi = await Bun.file(
|
||||
new URL("../.github/workflows/ci.yml", import.meta.url),
|
||||
).text();
|
||||
expect(githubCi).toContain("BASE_PATH");
|
||||
expect(githubCi).toContain("deploy-pages");
|
||||
expect(githubCi).toContain("pages:");
|
||||
});
|
||||
});
|
||||
|
||||
describe("flags", () => {
|
||||
|
||||
Reference in new issue
Block a user