Skip to content

feat: use playwright #4639

feat: use playwright

feat: use playwright #4639

Workflow file for this run

name: Node CI
on:
pull_request:
push:
branches:
- main
jobs:
build:
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [latest]
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
uses: bahmutov/npm-install@v1
- run: npm run build
- run: npm run lint
- run: npx playwright install --with-deps
- name: Build Storybook
run: npm run build-storybook --quiet
- name: Serve Storybook and run tests
run: |
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"npx http-server packages/ui/storybook-static --port 6006 --silent" \
"npx wait-on tcp:6006 && npm test"
- name: apps/web
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 # v2.2.3
with:
flag-name: web
base-path: apps/web
path-to-lcov: apps/web/coverage/lcov.info
parallel: true
- name: packages/ui
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 # v2.2.3
with:
flag-name: ui
base-path: packages/ui
path-to-lcov: packages/ui/coverage/lcov.info
parallel: true
- name: Codecov
uses: codecov/[email protected]
chromatic-deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
with:
fetch-depth: 0 # 👈 Required to retrieve git history
- name: Install dependencies
uses: bahmutov/npm-install@v1
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
token: ${{ secrets.github_token }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
finish:
needs: build
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 # v2.2.3
with:
parallel-finished: true