Skip to content

chore(deps): update webpack packages #5619

chore(deps): update webpack packages

chore(deps): update webpack packages #5619

name: Visual regression test
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: nvm
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ steps.nvm.outputs.NVMRC }}
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install packages
run: yarn
- name: Build source
run: yarn build
- name: Build storybook
run: yarn build:storybook
- name: Run visual regression test
run: yarn test:vr --requireReference --reactUri file:./storybook-static
- name: Archive screenshots
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: visual-regression-screenshots
path: .loki