Skip to content

Commit

Permalink
Update percy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Champion authored Apr 27, 2020
1 parent 7b0a63f commit 6bdbe52
Showing 1 changed file with 2 additions and 33 deletions.
35 changes: 2 additions & 33 deletions .github/workflows/percy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,39 +13,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: Financial-Times/origami-percy@v1
with:
node-version: 12.x
- if: contains(github.event.pull_request.labels.*.name, 'percy') || endsWith(github.ref, '/master')
run: npx origami-build-tools install
- if: contains(github.event.pull_request.labels.*.name, 'percy') || endsWith(github.ref, '/master')
run: npx origami-build-tools demo
- if: contains(github.event.pull_request.labels.*.name, 'percy') || endsWith(github.ref, '/master')
name: Percy Test
uses: percy/[email protected]
with:
build-directory: "demos/local"
github-token: ${{secrets.ORIGAMI_FOX_ACCESS_TOKEN}} # To comment as the Fox mascot GitHub user
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
- if: contains(github.event.pull_request.labels.*.name, 'percy')
uses: actions/[email protected]
with:
github-token: ${{secrets.ORIGAMI_FOX_ACCESS_TOKEN}}
script: |
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '👋 Percy has finished running the visual regression testing!'
})
- if: contains(github.event.pull_request.labels.*.name, 'percy')
uses: actions/[email protected]
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.issues.removeLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['percy']
})

0 comments on commit 6bdbe52

Please sign in to comment.