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 8e77808
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,16 @@ jobs:
${{ runner.OS }}-node-
${{ runner.OS }}-
- run: npm ci --legacy-peer-deps
- run: npm i @ffmpeg-installer/ffmpeg # install ffmpeg for testcafe to record videos
- 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 8e77808

Please sign in to comment.