chore: use jest & playwright testing 3d plots (#16) #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: [push] | |
jobs: | |
build: | |
runs-on: macOS-latest | |
defaults: | |
run: | |
working-directory: ./3d | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version: "16" | |
- name: Install Playwright browsers | |
run: npx playwright install --with-deps | |
- name: Run CI | |
run: | | |
npm install | |
npm run ci | |
- name: Upload snapshots to GitHub Actions Artifacts | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: snapshots | |
path: | | |
3d/__tests__/e2e/snapshots/*-actual.* | |
3d/__tests__/e2e/snapshots/*-diff.* | |
retention-days: 1 |