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:
Michal Dorner 2021-02-18 22:23:20 +01:00
parent 8efb156d28
commit 3340176ee8
No known key found for this signature in database
GPG key ID: 9EEE04B48DA36786
4 changed files with 5 additions and 18 deletions

View file

@ -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
View file

@ -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

File diff suppressed because one or more lines are too long

View file

@ -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
}
}