Skip to content

github actions CI #746

Answered by Robdel12
jcharnley asked this question in Support
Jan 26, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hey @jcharnley! You would setup your GitHub action config how you normally would to run tests in CI. For example:

name: CI
on: [push, pull_request]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@master
      - name: Install
        run: yarn
      - name: Percy Test
        run: npx percy exec -- [your-test-command]
        env:
          PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jcharnley
Comment options

@Robdel12
Comment options

Answer selected by Robdel12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants