-
Notifications
You must be signed in to change notification settings - Fork 3
79 lines (64 loc) · 2.2 KB
/
Copy pathgoodwallet-main.yml
File metadata and controls
79 lines (64 loc) · 2.2 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
name: Main branch checks and staging deployment
on:
push:
branches:
- main
jobs:
build:
name: Build workspace
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 24
- name: Enable Corepack
run: corepack enable
- name: Run install
run: yarn install --immutable
- name: Run Biome Check
uses: borales/actions-yarn@v5
with:
cmd: biome:verify:all
- name: Pull Vercel Preview environment
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
run: npx --yes vercel@latest pull --yes --environment=preview --token="$VERCEL_TOKEN"
- name: Build Vercel prebuilt Preview artifact
env:
NODE_OPTIONS: --max_old_space_size=8192
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
run: npx --yes vercel@latest build --target=preview --token="$VERCEL_TOKEN"
- name: Run Tests
uses: borales/actions-yarn@v5
with:
cmd: test
- name: Install Playwright Chromium
run: yarn playwright install --with-deps chromium
- name: Run Playwright screenshots
uses: borales/actions-yarn@v5
with:
cmd: test:e2e
- name: Deploy Vercel prebuilt Preview
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
run: npx --yes vercel@latest deploy --prebuilt --target=preview --token="$VERCEL_TOKEN"
- name: Upload Playwright screenshots and failure artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-artifacts
path: |
tests-playwright/screenshots/
tests-playwright/artifacts/
if-no-files-found: warn