Skip to content

Modernize the code #169

Modernize the code

Modernize the code #169

Workflow file for this run

name: Toolkit Visual Test
on:
push:
branches: main
pull_request:
branches: main
jobs:
visual-test:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup Node 💾
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Setup yarn cache
uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
yarn-
- name: Install Dependencies 📥
run: yarn install
- name: Install Playwright Browsers
run: yarn run playwright install --with-deps
working-directory: packages/components
- name: Run Visual Tests 🧪
run: yarn run test:visual
working-directory: packages/components
- name: Update Snapshots
if: ${{ failure() }}
run: |
mv test-results test-assets
yarn run test:visual -u
working-directory: packages/components
- uses: actions/upload-artifact@v3
if: ${{ failure() }}
with:
name: jupyter-ui-test
path: |
packages/components/test-assets/
packages/components/tests-out/**/*-snapshots/*