web/.forgejo/tests/web-deploy.test.mjs
2026-11-27 23:43:05 +00:00

7 lines
393 B
JavaScript

import test from 'node:test';
import assert from 'node:assert/strict';
import {readFileSync} from 'node:fs';
test('feature branch CI never invokes production deployment',()=>{
const workflow=readFileSync(new URL('../workflows/web-deploy.yml',import.meta.url),'utf8');
assert.match(workflow,/- name: Trigger deployment after successful CI\r?\n\s+if: github\.ref == 'refs\/heads\/main'/);
});