mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-15 13:57:09 +01: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:
parent
8efb156d28
commit
3340176ee8
4 changed files with 5 additions and 18 deletions
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
|
|
@ -33,16 +33,3 @@ jobs:
|
|||
name: JEST Tests
|
||||
path: __tests__/__results__/*.xml
|
||||
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('time', time);
|
||||
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;
|
||||
}
|
||||
if (results.length === 0) {
|
||||
core.setFailed(`No test results file has been processed`);
|
||||
core.setFailed(`No test report files were found`);
|
||||
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)
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
if (results.length === 0) {
|
||||
core.setFailed(`No test results file has been processed`)
|
||||
core.setFailed(`No test report files were found`)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue