-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jake Champion
authored
Apr 27, 2020
1 parent
7b0a63f
commit 6bdbe52
Showing
1 changed file
with
2 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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'] | ||
}) |