2022-10-14 11:11:00 +00:00
|
|
|
name: "Run Tests"
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
2022-10-14 11:17:22 +00:00
|
|
|
|
|
|
|
- name: Install Node
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 16
|
|
|
|
|
2022-10-14 11:11:00 +00:00
|
|
|
- name: Setup PNPM
|
|
|
|
uses: pnpm/action-setup@v2
|
2022-10-14 11:11:56 +00:00
|
|
|
with:
|
|
|
|
version: 7
|
2022-10-14 11:17:22 +00:00
|
|
|
|
2022-10-14 11:11:00 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: pnpm install
|
2022-10-16 00:47:52 +00:00
|
|
|
- name: Install Playwright
|
|
|
|
run: pnpm exec playwright install-deps
|
2022-10-14 11:11:00 +00:00
|
|
|
- name: Run tests
|
|
|
|
run: pnpm run test
|