Commit 7a507446 authored by tom's avatar tom

github action

parent 8ce4f8cd
name: Playwright name: Unit tests
on: [pull_request] on:
pull_request:
push:
branches:
- main
jobs: jobs:
test: jest_tests:
name: Run components visual tests name: Run tests with Jest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run tests
run: yarn test:unit
pw_tests:
name: Run components visual tests with PlayWright
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: mcr.microsoft.com/playwright:v1.27.0-focal image: mcr.microsoft.com/playwright:v1.27.0-focal
...@@ -14,7 +33,7 @@ jobs: ...@@ -14,7 +33,7 @@ jobs:
lfs: 'true' lfs: 'true'
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: '16' node-version: 16
cache: 'yarn' cache: 'yarn'
- name: Install dependencies - name: Install dependencies
run: yarn install --frozen-lockfile run: yarn install --frozen-lockfile
......
...@@ -110,7 +110,7 @@ const config: JestConfigWithTsJest = { ...@@ -110,7 +110,7 @@ const config: JestConfigWithTsJest = {
// projects: undefined, // projects: undefined,
// Use this configuration option to add custom reporters to Jest // Use this configuration option to add custom reporters to Jest
// reporters: undefined, reporters: [ 'default', 'github-actions' ],
// Automatically reset mock state before every test // Automatically reset mock state before every test
// resetMocks: false, // resetMocks: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment