Skip to content

Turning form into components #19

Turning form into components

Turning form into components #19

Workflow file for this run

name: Tests
on:
pull_request:
branches: [main]
jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
cache-dependency-path: package-lock.json
- name: Tests
run: |
npm ci
npm run test:unit -- run
integration-tests:
name: Integration Tests
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.38.0-jammy
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
cache-dependency-path: package-lock.json
- name: Tests
run: |
npm ci
npx playwright install --with-deps
npm run test:integration
- name: Report
uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30