forked from unimatrix/web
7 lines
393 B
JavaScript
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'/);
|
|
});
|

Staff