Skip to content

Commit

Permalink
chore: add e2e test artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
halfwhole committed Dec 29, 2023
1 parent 286ab8d commit 2b03676
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ jobs:
- run: npm ci --legacy-peer-deps
- run: echo CLOUDMERSIVE_KEY=${{secrets.CLOUDMERSIVE_KEY}} >> .env
- run: npm run test:e2e-headless
- name: Upload test artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: e2e-test-artifacts
path: ./test/end-to-end/artifacts

integration:
name: Integration Tests
runs-on: ubuntu-22.04
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"test": "jest --collectCoverage",
"test:ci": "jest --coverage && coveralls < coverage/lcov.info",
"test:e2e": "testcafe chrome ./test/end-to-end --app \"npm run dev\" --app-init-delay 270000",
"test:e2e-headless": "testcafe chrome:headless ./test/end-to-end --app \"npm run dev\" --app-init-delay 270000",
"test:e2e-headless": "testcafe chrome:headless ./test/end-to-end --app \"npm run dev\" --app-init-delay 270000 --video ./test/end-to-end/artifacts/videos -s takeOnFails=true,path=./test/end-to-end/artifacts/screenshots",
"test:integration": "jest --config=./test/integration/jest.config.js ./test/integration",
"cz": "git-cz",
"prepare": "husky install"
Expand Down

0 comments on commit 2b03676

Please sign in to comment.