-
Notifications
You must be signed in to change notification settings - Fork 197
51 lines (41 loc) · 1.37 KB
/
shortest.yml
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
name: "Shortest Tests"
on:
pull_request:
branches: [main]
jobs:
shortest:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
CLERK_PUBLISHABLE_KEY: ${{ secrets.CLERK_PUBLISHABLE_KEY }}
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }}
MAILOSAUR_API_KEY: ${{ secrets.MAILOSAUR_API_KEY }}
MAILOSAUR_SERVER_ID: ${{ secrets.MAILOSAUR_SERVER_ID }}
steps:
- uses: actions/checkout@v4
# Setup pnpm first
- uses: pnpm/action-setup@v2
with:
version: 8
# Then setup Node with pnpm caching
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Install Playwright
run: pnpm exec playwright install chromium
- name: Wait for Vercel preview deployment
uses: patrickedqvist/[email protected]
id: waitFor
with:
token: ${{ secrets.GITHUB_TOKEN }}
max_timeout: 300
check_status: false
- name: Run Shortest tests
env:
SHORTEST_TEST_BASE_URL: ${{ steps.waitFor.outputs.url }}
run: pnpm shortest --headless --target=${{ steps.waitFor.outputs.url }}