percy.yaml (1093B)
1 on: 2 workflow_dispatch: 3 push: 4 branches: 5 - main 6 pull_request: 7 8 jobs: 9 percy: 10 runs-on: ubuntu-latest 11 permissions: 12 packages: read 13 14 steps: 15 - uses: actions/checkout@v4 16 with: 17 persist-credentials: false 18 - uses: actions/setup-node@v3 19 with: 20 node-version: "18" 21 registry-url: https://npm.pkg.github.com/ 22 - name: Install 23 run: | 24 export NODE_OPTIONS="--max_old_space_size=4096" 25 npm install 26 npm install concurrently http-server wait-on 27 npx browserslist@latest --update-db 28 env: 29 # also other environment variable 30 NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} 31 - name: Run percy 32 run: | 33 export NODE_OPTIONS="--max_old_space_size=4096" 34 npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \ 35 "npm run storybook -- --debug --no-open" \ 36 "echo \"Starting test\" && npx wait-on -l tcp:127.0.0.1:6006 && npm run percy" 37 env: 38 PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}