Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
7a507446
Commit
7a507446
authored
Nov 16, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
github action
parent
8ce4f8cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
6 deletions
+25
-6
unit-tests.yml
.github/workflows/unit-tests.yml
+24
-5
jest.config.ts
jest.config.ts
+1
-1
No files found.
.github/workflows/
playwright
.yml
→
.github/workflows/
unit-tests
.yml
View file @
7a507446
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
...
...
jest.config.ts
View file @
7a507446
...
@@ -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,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment