Skip to content

Commit a7bfa69

Browse files
committed
ci: avoid docs-only push failures and stabilize canary check
1 parent 933950d commit a7bfa69

2 files changed

Lines changed: 40 additions & 7 deletions

File tree

.github/workflows/canary-reminder.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
name: Warrant Canary Reminder
22

33
on:
4+
push:
5+
branches: [master, main]
46
schedule:
57
- cron: '0 0 1 * *' # First day of every month at midnight UTC
68
workflow_dispatch: # Allow manual trigger
79

810
jobs:
11+
noop_on_push:
12+
if: ${{ github.event_name == 'push' }}
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Canary workflow noop on push
16+
run: echo "Warrant Canary reminder runs on schedule/workflow_dispatch."
17+
918
remind:
19+
if: ${{ github.event_name != 'push' }}
1020
runs-on: ubuntu-latest
1121
steps:
1222
- name: Create Issue
@@ -15,13 +25,13 @@ jobs:
1525
script: |
1626
const today = new Date().toISOString().split('T')[0];
1727
const nextMonth = new Date(Date.now() + 30*24*60*60*1000).toISOString().split('T')[0];
18-
28+
1929
await github.rest.issues.create({
2030
owner: context.repo.owner,
2131
repo: context.repo.repo,
2232
title: `🔐 Update Warrant Canary - ${today}`,
2333
body: `## Monthly Warrant Canary Update
24-
34+
2535
**Action Required:** Update and sign the warrant canary.
2636

2737
### Steps:

.github/workflows/e2e-tests.yml

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,55 @@ name: E2E Tests
33
on:
44
push:
55
branches: [master, main]
6+
paths:
7+
- "app/**"
8+
- "components/**"
9+
- "lib/**"
10+
- "pages/**"
11+
- "src/**"
12+
- "tests/**"
13+
- "playwright.config.*"
14+
- "next.config.*"
15+
- "package.json"
16+
- "package-lock.json"
617
pull_request:
718
branches: [master, main]
19+
paths:
20+
- "app/**"
21+
- "components/**"
22+
- "lib/**"
23+
- "pages/**"
24+
- "src/**"
25+
- "tests/**"
26+
- "playwright.config.*"
27+
- "next.config.*"
28+
- "package.json"
29+
- "package-lock.json"
30+
workflow_dispatch:
831

932
jobs:
1033
test:
1134
runs-on: ubuntu-latest
1235
steps:
1336
- uses: actions/checkout@v4
14-
37+
1538
- name: Setup Node.js
1639
uses: actions/setup-node@v4
1740
with:
1841
node-version: '20'
1942
cache: 'npm'
20-
43+
2144
- name: Install dependencies
2245
run: npm ci --legacy-peer-deps
23-
46+
2447
- name: Install Playwright Browsers
2548
run: npx playwright install --with-deps
26-
49+
2750
- name: Run E2E tests
2851
run: npm run test:e2e:full
2952
env:
3053
BASE_URL: http://localhost:3000
31-
54+
3255
- name: Upload test results
3356
if: always()
3457
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)