-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 841 Bytes
/
test-ui.yml
File metadata and controls
32 lines (30 loc) · 841 Bytes
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
name: test-ui
on:
- push
jobs:
unit-test:
runs-on: ubuntu-latest
environment: Preview
strategy:
fail-fast: false
matrix:
shard: [1/2, 2/2]
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup
uses: ./.github/actions/setup
- name: Setup Playwright
uses: ./.github/actions/playwright
- name: Run Test
run: |
npx convex dev &
# Convexの起動と環境変数のセットを待つ
sleep 15
pnpm vitest run --shard=${{ matrix.shard }} --project=ui
kill %1
env:
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }}
VITE_CLERK_PUBLISHABLE_KEY: ${{ secrets.VITE_CLERK_PUBLISHABLE_KEY }}
CONVEX_DEPLOY_KEY: ${{ secrets.CONVEX_DEPLOY_KEY }}