Skip to content

How to use as a github action? #360

Answered by Robdel12
runspired asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @runspired! The action only was needed to set env vars for Percy. Now you can run your test command in your CI config however that usually happens. For example, if this was before:

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
        uses: percy/exec-action@v0.3.1
        with:
          command: "ember test"
        env:
          PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}

It would be now:

name: CI
on: [push, pull_request]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/ch…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Robdel12
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #330 on August 03, 2021 20:35.