tftsr-devops_investigation/tests/unit/releaseWorkflowMacBundle.test.ts
Shaun Arman 04c834c58e
All checks were successful
Auto Tag / autotag (push) Successful in 52s
Auto Tag / build-macos-arm64 (push) Successful in 5m59s
Auto Tag / build-windows-amd64 (push) Successful in 17m49s
Auto Tag / build-linux-amd64 (push) Successful in 34m58s
Auto Tag / build-linux-arm64 (push) Successful in 34m57s
refactor(ci): remove standalone release workflow
Delete .gitea/workflows/release.yml and keep release orchestration in auto-tag.yml only, then update related workflow tests and docs to reference the unified pipeline.

Made-with: Cursor
2026-04-04 21:34:15 -05:00

24 lines
707 B
TypeScript

import { describe, expect, it } from "vitest";
import { readFileSync } from "node:fs";
import path from "node:path";
const autoTagWorkflowPath = path.resolve(
process.cwd(),
".gitea/workflows/auto-tag.yml",
);
describe("auto-tag release macOS bundle path", () => {
it("does not reference the legacy TFTSR.app bundle name", () => {
const workflow = readFileSync(autoTagWorkflowPath, "utf-8");
expect(workflow).not.toContain("/bundle/macos/TFTSR.app");
});
it("resolves the macOS .app bundle dynamically", () => {
const workflow = readFileSync(autoTagWorkflowPath, "utf-8");
expect(workflow).toContain("APP=$(find");
expect(workflow).toContain("-name \"*.app\"");
});
});