chore: setup CI/CD pipelines: check, playwright, bundle analyzer

This commit is contained in:
Bart Stefanski 2023-04-21 12:02:52 +02:00
parent f9b249c90a
commit 518863cd4a
10 changed files with 173 additions and 21 deletions

View file

@ -1,20 +1,24 @@
name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
workflow_dispatch:
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: actions/checkout@v3
- run: echo "node_version=$(cat .github/nodejs.version)" >> $GITHUB_ENV
- name: use node ${{ env.node_version }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.node_version }}
- name: Install dependencies
run: yarn
run: yarn install --frozen-lockfile
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
- name: Run Playwright tests