Skip to content

Commit

Permalink
Matrix run percy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jrjohnson committed Feb 6, 2024
1 parent cbc3aa7 commit 9612078
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/percy-test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ jobs:
if: contains(github.event.pull_request.labels.*.name, 'run percy tests')
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
workspace:
- frontend
- test-app
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -33,9 +39,4 @@ jobs:
cache: pnpm
- run: pnpm install
- name: Run Percy Tests
run: pnpm run --workspace-concurrency=1 -r test:percy
- uses: act10ns/slack@v2
if: failure()
with:
status: ${{ job.status }}
message: Percy Run Failed {{ env.GITHUB_SERVER_URL }}/{{ env.GITHUB_REPOSITORY }}/actions/runs/{{ env.GITHUB_RUN_ID }}
run: pnpm --filter ${{matrix.workspace}} exec percy exec -- ember test
8 changes: 7 additions & 1 deletion .github/workflows/percy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ jobs:
name: Test and Capture Screenshots
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
workspace:
- frontend
- test-app
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
Expand All @@ -31,7 +37,7 @@ jobs:
cache: pnpm
- run: pnpm install
- name: Run Percy Tests
run: pnpm run --workspace-concurrency=1 -r test:percy
run: pnpm --filter ${{matrix.workspace}} exec percy exec -- ember test
- uses: act10ns/slack@v2
if: failure()
with:
Expand Down
1 change: 0 additions & 1 deletion packages/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
},
"scripts": {
"build": "ember build --environment=production",
"percy:test": "percy exec -- pnpm run test:ember",
"deploy:production": "ember deploy production --activate",
"deploy:staging": "ember deploy staging --activate",
"deploy:test": "ember deploy development",
Expand Down
1 change: 0 additions & 1 deletion packages/test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"build": "ember build --environment=production",
"start": "ember serve",
"test:ember": "ember test",
"test:percy": "percy exec -- pnpm run test:ember",
"tryone": "ember try:one"
},
"devDependencies": {
Expand Down

0 comments on commit 9612078

Please sign in to comment.