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
fbaf9a86
Commit
fbaf9a86
authored
Jun 16, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shard pw test job by project
parent
3ad98112
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
checks.yml
.github/workflows/checks.yml
+7
-2
playwright-ct.config.ts
playwright-ct.config.ts
+4
-2
No files found.
.github/workflows/checks.yml
View file @
fbaf9a86
...
@@ -92,12 +92,17 @@ jobs:
...
@@ -92,12 +92,17 @@ jobs:
run
:
yarn test:jest
run
:
yarn test:jest
pw_tests
:
pw_tests
:
name
:
Run components visual tests with PlayWright
name
:
'
Run
components
visual
tests
with
PlayWright,
project:
${{
matrix.project
}}'
needs
:
[
code_quality
]
needs
:
[
code_quality
]
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
container
:
container
:
image
:
mcr.microsoft.com/playwright:v1.32.0-focal
image
:
mcr.microsoft.com/playwright:v1.32.0-focal
strategy
:
fail-fast
:
false
matrix
:
project
:
[
default
,
mobile
,
dark-color-mode
]
steps
:
steps
:
-
name
:
Install git-lfs
-
name
:
Install git-lfs
run
:
apt-get update && apt-get install git-lfs
run
:
apt-get update && apt-get install git-lfs
...
@@ -127,7 +132,7 @@ jobs:
...
@@ -127,7 +132,7 @@ jobs:
run
:
yarn --frozen-lockfile --offline
run
:
yarn --frozen-lockfile --offline
-
name
:
Run PlayWright
-
name
:
Run PlayWright
run
:
HOME=/root
yarn test:pw
run
:
HOME=/root
./playwright/make-envs-script.sh && NODE_OPTIONS=\"--max-old-space-size=4096\" playwright test -c playwright-ct.config.ts --project=${{ matrix.project }}
-
name
:
Upload test results
-
name
:
Upload test results
if
:
always()
if
:
always()
...
...
playwright-ct.config.ts
View file @
fbaf9a86
...
@@ -63,7 +63,9 @@ const config: PlaywrightTestConfig = defineConfig({
...
@@ -63,7 +63,9 @@ const config: PlaywrightTestConfig = defineConfig({
},
},
},
},
/* Configure projects for major browsers */
// configured projects
// these projects are also used for sharding tests in CI
// when adding or deleting a project, make sure to update github workflow accordingly
projects
:
[
projects
:
[
{
{
name
:
'
default
'
,
name
:
'
default
'
,
...
@@ -81,7 +83,7 @@ const config: PlaywrightTestConfig = defineConfig({
...
@@ -81,7 +83,7 @@ const config: PlaywrightTestConfig = defineConfig({
},
},
},
},
{
{
name
:
'
dark
color
mode
'
,
name
:
'
dark
-color-
mode
'
,
grep
:
/
\+
@dark-mode/
,
grep
:
/
\+
@dark-mode/
,
use
:
{
use
:
{
...
devices
[
'
Desktop Chrome
'
],
...
devices
[
'
Desktop Chrome
'
],
...
...
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