1 parent 18775c7 commit 4316a59Copy full SHA for 4316a59
2 files changed
.github/workflows/deploy.yml
@@ -41,6 +41,8 @@ jobs:
41
42
- name: Setup GitHub Pages
43
uses: actions/configure-pages@v6
44
+ with:
45
+ enablement: true
46
47
- name: Upload GitHub Pages artifact
48
uses: actions/upload-pages-artifact@v5
src/tests/githubPagesWorkflow.test.ts
@@ -0,0 +1,13 @@
1
+import fs from 'node:fs';
2
+import path from 'node:path';
3
+
4
+describe('GitHub Pages deployment workflow', () => {
5
+ test('enables Pages when configuring a repository without an existing Pages site', () => {
6
+ const workflowPath = path.resolve(process.cwd(), '.github/workflows/deploy.yml');
7
+ const workflow = fs.readFileSync(workflowPath, 'utf8');
8
9
+ expect(workflow).toMatch(
10
+ /uses: actions\/configure-pages@v6\s+with:\s+enablement: true/,
11
+ );
12
+ });
13
+});
0 commit comments