mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-04 04:05:22 -08:00
Remove artifact-test from CI
Artifacts via public API are not available before whole workflow is finished. Therefore it's not possible to execute test this way
This commit is contained in:
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@@ -33,16 +33,3 @@ jobs:
|
|||||||
name: JEST Tests
|
name: JEST Tests
|
||||||
path: __tests__/__results__/*.xml
|
path: __tests__/__results__/*.xml
|
||||||
reporter: jest-junit
|
reporter: jest-junit
|
||||||
|
|
||||||
artifact-test:
|
|
||||||
name: Artifact test
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: build-test
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: ./
|
|
||||||
with:
|
|
||||||
artifact: test-results
|
|
||||||
name: Artifact Report
|
|
||||||
path: '*.xml'
|
|
||||||
reporter: jest-junit
|
|
||||||
|
|||||||
4
dist/index.js
generated
vendored
4
dist/index.js
generated
vendored
@@ -304,11 +304,11 @@ class TestReporter {
|
|||||||
core.setOutput('skipped', skipped);
|
core.setOutput('skipped', skipped);
|
||||||
core.setOutput('time', time);
|
core.setOutput('time', time);
|
||||||
if (this.failOnError && isFailed) {
|
if (this.failOnError && isFailed) {
|
||||||
core.setFailed(`Failed test has been found and 'fail-on-error' option is set to ${this.failOnError}`);
|
core.setFailed(`Failed test were found and 'fail-on-error' option is set to ${this.failOnError}`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (results.length === 0) {
|
if (results.length === 0) {
|
||||||
core.setFailed(`No test results file has been processed`);
|
core.setFailed(`No test report files were found`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@@ -122,12 +122,12 @@ class TestReporter {
|
|||||||
core.setOutput('time', time)
|
core.setOutput('time', time)
|
||||||
|
|
||||||
if (this.failOnError && isFailed) {
|
if (this.failOnError && isFailed) {
|
||||||
core.setFailed(`Failed test has been found and 'fail-on-error' option is set to ${this.failOnError}`)
|
core.setFailed(`Failed test were found and 'fail-on-error' option is set to ${this.failOnError}`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (results.length === 0) {
|
if (results.length === 0) {
|
||||||
core.setFailed(`No test results file has been processed`)
|
core.setFailed(`No test report files were found`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user