-
The problemI'm trying to execute Percy in a Github Action, but Chromium fails to install; My action is as follows:
I followed the instructions found on this page https://github.com/percy/snapshot-action, which seems to be the same way I'm doing it. Any ideas why it might fail? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
Robdel12
Sep 29, 2021
Replies: 1 comment 2 replies
-
Hey @oskarer! Looks like this is a CI config issue -- you might be missing a setup node step. You'll also want to install the project dependencies before running the command too. Maybe something like name: CI
on:
pull_request:
branches: [master]
workflow_dispatch:
jobs:
percy-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- name: Install dependencies
run: npm install
- name: Run Percy
run: npx percy snapshot snapshots.yml
env:
PERCY_TOKEN: ${{secrets.PERCY_TOKEN}} (I'd also double check the spacing/tabbing in the yaml before pasting) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
oskarer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @oskarer! Looks like this is a CI config issue -- you might be missing a setup node step. You'll also want to install the project dependencies before running the command too. Maybe something like
(I'd also double check the spacing/tabbing in the yaml befor…