Skip to content

Commit b6b1337

Browse files
authored
Merge branch 'next' into refactoring/scrollview-jest-to-playwright
2 parents a2c6492 + 63d6139 commit b6b1337

File tree

1,013 files changed

+14639
-8918
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,013 files changed

+14639
-8918
lines changed

.env.dist

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
###############################
2+
# Docker compose configuration #
3+
###############################
4+
15
# Host system port where the live documentation is to be made accessible
26
COMPOSE_START_PORT=8000
37

8+
# Host system port where Playwright Component Testing report is to be made accessible
9+
COMPOSE_PLAYWRIGHT_REPORT_PORT=9323
10+
411
# Ownership of the files created in the container
512
COMPOSE_UID=1000
613
COMPOSE_GID=1000

.env.playwright.dist

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
###########################
2+
# Playwright configuration #
3+
###########################
4+
5+
# Number of workers to use to run Playwright tests
6+
PW_WORKERS=1
7+
8+
# Port used by Playwright Component Testing to serve the test files
9+
PW_CT_PORT=3100

.eslintrc-ts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"extends": [
3+
"@visionappscz/eslint-config-visionapps",
4+
"airbnb-typescript",
5+
"plugin:@typescript-eslint/recommended",
6+
"plugin:@typescript-eslint/recommended-type-checked",
7+
"plugin:deprecation/recommended",
8+
"plugin:typescript-sort-keys/recommended",
9+
],
10+
"env": {
11+
"browser": true,
12+
"jest": true
13+
},
14+
"overrides": [
15+
{
16+
"files": [
17+
"*.spec.tsx",
18+
"*.story.tsx",
19+
],
20+
"rules": {
21+
"@typescript-eslint/unbound-method": "off"
22+
}
23+
}
24+
],
25+
"parser": "@typescript-eslint/parser",
26+
"parserOptions": {
27+
"projectService": true,
28+
"project": "./tsconfig.json"
29+
},
30+
"plugins": [
31+
"@typescript-eslint"
32+
],
33+
"rules": {
34+
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
35+
"@typescript-eslint/consistent-type-exports": ["error"],
36+
"@typescript-eslint/consistent-type-imports": ["error"],
37+
"import/prefer-default-export": "off",
38+
"no-console": ["error"]
39+
}
40+
}

.github/workflows/playwright.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Playwright
2+
3+
on:
4+
pull_request:
5+
schedule:
6+
- cron: '0 6 * * *' # daily at 6:00 UTC (7:00 CET, 8:00 CEST)
7+
8+
jobs:
9+
test:
10+
name: Playwright
11+
runs-on: ubuntu-24.04
12+
container:
13+
image: mcr.microsoft.com/playwright:v1.50.1-noble
14+
steps:
15+
- name: Clone repository
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 22
22+
cache: npm
23+
24+
- name: Print Node.js and npm version
25+
run: node --version && npm --version
26+
27+
- name: Install
28+
run: npm ci
29+
30+
- name: Install Playwright Browsers
31+
run: npx playwright install --with-deps
32+
33+
- name: Run Playwright tests and generate test report
34+
run: npm run test:playwright-ct:all
35+
36+
- name: Install Playwright Browsers
37+
run: npx playwright install --with-deps
38+
39+
- name: Upload Playwright test report
40+
uses: actions/upload-artifact@v4
41+
if: ${{ !cancelled() }}
42+
with:
43+
name: playwright-report
44+
path: playwright-report/
45+
retention-days: 30

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
/coverage
22
/dist
33
/node_modules
4+
/playwright-report/
45
/site
56
/src/docs/_assets/generated/*
7+
/tests/playwright/.temp/
68
.env
9+
.env.playwright
710
statistics.html
811
!.gitkeep

.npmignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@
1919
.markdownlint.jsonc
2020
babel.config.js
2121
CODEOWNERS
22-
CONTRIBUTING.md
2322
docker-compose.yml
2423
jest.config.js
2524
mkdocs.yml
2625
package-lock.json
2726
postcss.config.js
28-
RELEASING.md
2927
statistics.html
3028
stylelint.config.js
3129
webpack.config.babel.js

CONTRIBUTING.md

Lines changed: 0 additions & 178 deletions
This file was deleted.

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,23 @@ We appreciate any contributions you might make. 🙏
110110
Please check out our [Contributing Guide][gh-contributing]. It includes
111111
contribution guidelines and information on how to run and develop the project.
112112

113+
## Testing
114+
115+
All contributions should pass linting and tests before being merged.
116+
Please follow our [Testing Guidelines][gh-testing], which describe
117+
how to properly run all tests (linters, unit tests, visual tests)
118+
in Docker containers to ensure consistency.
119+
120+
## Releasing
121+
122+
React UI uses a fully automated release process.
123+
If you plan to release a new version,
124+
please follow our [Releasing Guide][gh-releasing],
125+
which explains all necessary steps, including version bumping
126+
and changelog management.
127+
113128
[rui-docs]: https://react-ui.io
114129
[RACOM]: https://www.racom.eu
115-
[gh-contributing]: https://github.com/react-ui-org/react-ui/blob/master/CONTRIBUTING.md
130+
[gh-contributing]: ./src/docs/contribute/general-guidelines.md
131+
[gh-testing]: ./src/docs/contribute/testing-guidelines.md
132+
[gh-releasing]: ./src/docs/contribute/releasing.md

0 commit comments

Comments
 (0)