-
Notifications
You must be signed in to change notification settings - Fork 1
88 lines (73 loc) · 2.04 KB
/
Copy pathweekly-drills.yml
File metadata and controls
88 lines (73 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Weekly Drills
on:
schedule:
- cron: "0 3 * * 0"
workflow_dispatch: {}
permissions:
contents: read
id-token: write
jobs:
backup-restore-drill:
name: Backup & Restore Drill
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run backup drill
run: bun run drill:backup-restore
env:
DATABASE_URL: ${{ vars.DRILL_DATABASE_URL || 'postgresql://test:test@localhost:5432/test' }}
BACKUP_DESTINATION: "file:./test-results/drills"
- name: Upload drill artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: backup-drill-report
path: test-results/drills/
retention-days: 30
redis-outage-drill:
name: Redis Outage Drill
runs-on: ubuntu-latest
timeout-minutes: 15
services:
postgres:
image: postgres:16-alpine
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run Redis drill
run: bun run drill:redis
env:
DATABASE_URL: postgresql://test:test@localhost:5432/test
REDIS_URL: redis://localhost:6379
postgres-reconnect-drill:
name: PostgreSQL Reconnect Drill
runs-on: ubuntu-latest
timeout-minutes: 15
services:
postgres:
image: postgres:16-alpine
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run Postgres drill
run: bun run drill:postgres
env:
DATABASE_URL: postgresql://test:test@localhost:5432/test