🚨 added linting and prettier, fix all, fix run playwri… #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Playwright Tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
environment: test | |
services: | |
web: | |
image: node:16 | |
ports: | |
- 3000:3000 | |
options: >- | |
--health-cmd="curl --fail http://localhost:3000 || exit 1" | |
--health-interval=10s | |
--health-timeout=5s | |
--health-retries=3 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: Install dependencies | |
run: npm ci | |
- name: Start server | |
run: npm start & | |
env: | |
CI: true | |
- name: Wait for server to be ready | |
run: npx wait-on http://localhost:3000 | |
- name: Run Playwright tests | |
run: npx playwright test |