Skip to content

Bump @adobe/css-tools from 4.1.0 to 4.3.1 in /services/madoc-ts #20

Bump @adobe/css-tools from 4.1.0 to 4.3.1 in /services/madoc-ts

Bump @adobe/css-tools from 4.1.0 to 4.3.1 in /services/madoc-ts #20

name: Test storybook
on:
pull_request:
types: [ labeled, push ]
jobs:
build:
if: ${{ contains( github.event.pull_request.labels.*.name, 'test-storybook') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 18
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-madoc-ts-${{ hashFiles('services/madoc-ts/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-madoc-ts-
- working-directory: services/madoc-ts
run: yarn install --frozen-lockfile --non-interactive
- uses: actions/cache@v1
with:
path: services/madoc-ts/node_modules/.vite
key: vite-cache
restore-keys: |
vite-cache
- name: Install Playwright
working-directory: services/madoc-ts
run: npx playwright install --with-deps
- name: Build Storybook
working-directory: services/madoc-ts
run: yarn build-storybook --quiet
- name: Serve Storybook and run tests
working-directory: services/madoc-ts
run: |
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"npx http-server storybook-static --port 6500 --silent" \
"npx wait-on tcp:6006 && yarn test-storybook --ci"