diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-05-09 07:01:51 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-05-09 07:01:51 +0000 |
| commit | c662a835c57adc802b28f9cb4a1681fcd3a27e6c (patch) | |
| tree | ba8e3e867763ebbaa29fd64087bb12e9d9ce8686 /.gitlab-ci.yml | |
| parent | 8ca4989cb42c1da1f702512a29638ff363d30430 (diff) | |
add js tests, fixes #2605
Closes #2605
Merge request studip/studip!1757
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 55657cb..d2cf42c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -178,6 +178,22 @@ test-unit: reports: junit: $PHPUNIT_XML_REPORT +test-jest: + stage: test + needs: [lint-js] + variables: + JS_TEST_REPORT: $REPORT_DIR/jest.xml + cache: *npm-cache + interruptible: true + before_script: + - *mkdir-reports + - npm install + script: + - JEST_JUNIT_OUTPUT_FILE="$JS_TEST_REPORT" npx jest tests/jest/ --ci --reporters=default --reporters=jest-junit + artifacts: + reports: + junit: $JS_TEST_REPORT + test-functional: stage: test needs: [lint-php] |
