Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/percy-on-demand.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
- name: Run Percy check site1
run: |
cd packages/site1
percy snapshot --base-url https://site1-uwh-deploy-test.netlify.app snaplist.yml
PERCY_BRANCH=develop percy snapshot --base-url https://site1-uwh-deploy-test.netlify.app snaplist.yml
env:
PERCY_TOKEN: ${{ secrets["PERCY_TOKEN_site1"] }}
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN_SITE1 }}
- name: Run Percy check site2
run: |
cd packages/site2
percy snapshot --base-url https://site2-uwh-deploy-test.netlify.app snaplist.yml
PERCY_BRANCH=develop percy snapshot --base-url https://site2-uwh-deploy-test.netlify.app snaplist.yml
env:
PERCY_TOKEN: ${{ secrets["PERCY_TOKEN_site2"] }}
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN_SITE2 }}
17 changes: 13 additions & 4 deletions .github/workflows/percy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ name: Percy Check
on:
deployment_status

# concurrency:
# group: ci-tests-${{ github.workflow }}-${{ github.event.deployment_status.environment }}-${{ github.ref }}-1
# cancel-in-progress: true

jobs:
percy-check:
runs-on: ubuntu-latest
Expand All @@ -26,8 +22,21 @@ jobs:
echo "site=$SITE" >> $GITHUB_ENV
echo "PERCY_TOKEN_NAME=PERCY_TOKEN_$SITE" >> $GITHUB_ENV
- name: Run Percy check
if: ${{ github.event.deployment_status.environment_url }}
run: |
cd packages/${{ env.site }}
percy snapshot --base-url ${{ github.event.deployment_status.environment_url }} snaplist.yml
env:
PERCY_TOKEN: ${{ secrets[env.PERCY_TOKEN_NAME] }}
# if no github.event.deployment_status.environment_url, that means deploy was successful because there were
# no code changes and no actual deployment made.
# instead create a fake success status with the same name as the percy app?
- name: No Deployment Changes, set fuax status
uses: myrotvorets/set-commit-status-action@master
if: ${{ !github.event.deployment_status.environment_url }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: success
context: percy/${{ github.event.deployment_status.environment }}
description: Visual check not needed, no deployment changes
sha: ${{github.event.deployment.sha}}
3 changes: 2 additions & 1 deletion common.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Shared file to test changes

Will this trigger both sites?
update all builds again
update all builds again
nothing should build as I commit this.
Loading