mirror of
https://github.com/ansible/awx.git
synced 2026-03-17 17:07:33 -02:30
Split UI test run
Split UI test run See: https://github.com/ansible/awx/issues/10678
This commit is contained in:
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@@ -33,9 +33,12 @@ jobs:
|
|||||||
- name: ui-lint
|
- name: ui-lint
|
||||||
label: Run UI Linters
|
label: Run UI Linters
|
||||||
command: make ui-lint
|
command: make ui-lint
|
||||||
- name: ui-test
|
- name: ui-test-screens
|
||||||
label: Run UI Tests
|
label: Run UI Screens Tests
|
||||||
command: make ui-test
|
command: make ui-test-screens
|
||||||
|
- name: ui-test-general
|
||||||
|
label: Run UI General Tests
|
||||||
|
command: make ui-test-general
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
|||||||
11
Makefile
11
Makefile
@@ -402,9 +402,18 @@ ui-lint:
|
|||||||
|
|
||||||
ui-test:
|
ui-test:
|
||||||
$(NPM_BIN) --prefix awx/ui install
|
$(NPM_BIN) --prefix awx/ui install
|
||||||
$(NPM_BIN) run --prefix awx/ui test
|
$(NPM_BIN) run --prefix awx/ui test
|
||||||
|
|
||||||
|
ui-test-screens:
|
||||||
|
$(NPM_BIN) --prefix awx/ui install
|
||||||
|
$(NPM_BIN) run --prefix awx/ui pretest
|
||||||
|
$(NPM_BIN) run --prefix awx/ui test-screens --runInBand
|
||||||
|
|
||||||
|
ui-test-general:
|
||||||
|
$(NPM_BIN) --prefix awx/ui install
|
||||||
|
$(NPM_BIN) run --prefix awx/ui pretest
|
||||||
|
$(NPM_BIN) run --prefix awx/ui/ test-general --runInBand
|
||||||
|
|
||||||
# Build a pip-installable package into dist/ with a timestamped version number.
|
# Build a pip-installable package into dist/ with a timestamped version number.
|
||||||
dev_build:
|
dev_build:
|
||||||
$(PYTHON) setup.py dev_build
|
$(PYTHON) setup.py dev_build
|
||||||
|
|||||||
@@ -75,6 +75,8 @@
|
|||||||
"start-instrumented": "ESLINT_NO_DEV_ERRORS=true DEBUG=instrument-cra PORT=3001 HTTPS=true DANGEROUSLY_DISABLE_HOST_CHECK=true react-scripts -r @cypress/instrument-cra start",
|
"start-instrumented": "ESLINT_NO_DEV_ERRORS=true DEBUG=instrument-cra PORT=3001 HTTPS=true DANGEROUSLY_DISABLE_HOST_CHECK=true react-scripts -r @cypress/instrument-cra start",
|
||||||
"build": "INLINE_RUNTIME_CHUNK=false react-scripts build",
|
"build": "INLINE_RUNTIME_CHUNK=false react-scripts build",
|
||||||
"test": "TZ='UTC' react-scripts test --watchAll=false",
|
"test": "TZ='UTC' react-scripts test --watchAll=false",
|
||||||
|
"test-screens": "TZ='UTC' react-scripts test screens --watchAll=false",
|
||||||
|
"test-general": "TZ='UTC' react-scripts test --testPathIgnorePatterns='<rootDir>/src/screens/' --watchAll=false",
|
||||||
"test-watch": "TZ='UTC' react-scripts test",
|
"test-watch": "TZ='UTC' react-scripts test",
|
||||||
"eject": "react-scripts eject",
|
"eject": "react-scripts eject",
|
||||||
"lint": "eslint --ext .js --ext .jsx .",
|
"lint": "eslint --ext .js --ext .jsx .",
|
||||||
|
|||||||
Reference in New Issue
Block a user