Skip to content

Commit

Permalink
try prevent percy to run if other test are failings
Browse files Browse the repository at this point in the history
  • Loading branch information
romgere committed Mar 6, 2024
1 parent 6306f21 commit 951d374
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Test
run: yarn percy exec -- ember test
run: yarn test:ember
- name: Visual Tests
if: success()
run: yarn percy exec -- yarn test:ember:visual
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"lint:types": "tsc --noEmit --composite false",
"start": "ember serve",
"test": "concurrently \"npm:lint\" \"npm:test:*\" --names \"lint,test:\"",
"test:ember": "ember test",
"test:ember": "ember test --filter=\"!Visual\"",
"test:ember:visual": "ember test --filter=\"Visual\"",
"generate:type_img": "misc/text_type/generate_logo.sh"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/visual-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import mockFontManager from 'text2stl/tests/helpers/mock-font-manager';
import waitCalciteReady from 'text2stl/tests/helpers/wait-calcite-ready';
import wait from 'text2stl/tests/helpers/wait';

module('Acceptance | visual', function (hooks) {
module('Visual | percy', function (hooks) {
setupApplicationTest(hooks);

hooks.beforeEach(function () {
Expand Down

0 comments on commit 951d374

Please sign in to comment.