-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.07 KB
/
percy.yaml
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
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
jobs:
percy:
runs-on: ubuntu-latest
permissions:
packages: read
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version: "18"
registry-url: https://npm.pkg.github.com/
- name: Install
run: |
export NODE_OPTIONS="--max_old_space_size=4096"
npm install
npm install concurrently http-server wait-on
npx browserslist@latest --update-db
env:
# also other environment variable
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run percy
run: |
export NODE_OPTIONS="--max_old_space_size=4096"
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"npm run storybook -- --debug --no-open" \
"echo \"Starting test\" && npx wait-on -l tcp:127.0.0.1:6006 && npm run percy"
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}