feat(ci): upload test output folder from github actions (#1733)

This commit is contained in:
Dmitry Gozman 2020-04-09 16:57:01 -07:00 committed by GitHub
parent 78abf5cb40
commit 7189d19913
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,6 +32,13 @@ jobs:
- run: xvfb-run --auto-servernum -- bash -c "npm run ccoverage 2>./chromium-linux-testrun.log"
env:
DEBUG: "*"
# Ensure output folder exists just in case it was not created by the test run.
- run: node -e "require('fs').mkdirSync(require('path').join('test', 'output-chromium'), {recursive:true})"
- uses: actions/upload-artifact@v1
if: failure()
with:
name: chromium-linux-output
path: test/output-chromium
- uses: actions/upload-artifact@v1
if: failure()
with:
@ -51,6 +58,13 @@ jobs:
- run: npm run ctest 2>./chromium-mac-testrun.log
env:
DEBUG: "*"
# Ensure output folder exists just in case it was not created by the test run.
- run: node -e "require('fs').mkdirSync(require('path').join('test', 'output-chromium'), {recursive:true})"
- uses: actions/upload-artifact@v1
if: failure()
with:
name: chromium-mac-output
path: test/output-chromium
- uses: actions/upload-artifact@v1
if: failure()
with:
@ -71,6 +85,13 @@ jobs:
shell: bash
env:
DEBUG: "*"
# Ensure output folder exists just in case it was not created by the test run.
- run: node -e "require('fs').mkdirSync(require('path').join('test', 'output-chromium'), {recursive:true})"
- uses: actions/upload-artifact@v1
if: failure()
with:
name: chromium-win-output
path: test/output-chromium
- uses: actions/upload-artifact@v1
if: failure()
with:
@ -95,6 +116,13 @@ jobs:
- run: xvfb-run --auto-servernum -- bash -c "npm run wcoverage 2>./webkit-linux-testrun.log"
env:
DEBUG: "*,-pw:wrapped*"
# Ensure output folder exists just in case it was not created by the test run.
- run: node -e "require('fs').mkdirSync(require('path').join('test', 'output-webkit'), {recursive:true})"
- uses: actions/upload-artifact@v1
if: failure()
with:
name: webkit-linux-output
path: test/output-webkit
- uses: actions/upload-artifact@v1
if: failure()
with:
@ -114,6 +142,13 @@ jobs:
- run: npm run wtest 2>./webkit-mac-testrun.log
env:
DEBUG: "*,-pw:wrapped*"
# Ensure output folder exists just in case it was not created by the test run.
- run: node -e "require('fs').mkdirSync(require('path').join('test', 'output-webkit'), {recursive:true})"
- uses: actions/upload-artifact@v1
if: failure()
with:
name: webkit-mac-output
path: test/output-webkit
- uses: actions/upload-artifact@v1
if: failure()
with:
@ -134,6 +169,13 @@ jobs:
shell: bash
env:
DEBUG: "*,-pw:wrapped*"
# Ensure output folder exists just in case it was not created by the test run.
- run: node -e "require('fs').mkdirSync(require('path').join('test', 'output-webkit'), {recursive:true})"
- uses: actions/upload-artifact@v1
if: failure()
with:
name: webkit-win-output
path: test/output-webkit
- uses: actions/upload-artifact@v1
if: failure()
with:
@ -158,6 +200,13 @@ jobs:
- run: xvfb-run --auto-servernum -- bash -c "npm run fcoverage 2>./firefox-linux-testrun.log"
env:
DEBUG: "*"
# Ensure output folder exists just in case it was not created by the test run.
- run: node -e "require('fs').mkdirSync(require('path').join('test', 'output-firefox'), {recursive:true})"
- uses: actions/upload-artifact@v1
if: failure()
with:
name: firefox-linux-output
path: test/output-firefox
- uses: actions/upload-artifact@v1
if: failure()
with:
@ -177,6 +226,13 @@ jobs:
- run: npm run ftest 2>./firefox-mac-testrun.log
env:
DEBUG: "*"
# Ensure output folder exists just in case it was not created by the test run.
- run: node -e "require('fs').mkdirSync(require('path').join('test', 'output-firefox'), {recursive:true})"
- uses: actions/upload-artifact@v1
if: failure()
with:
name: firefox-mac-output
path: test/output-firefox
- uses: actions/upload-artifact@v1
if: failure()
with:
@ -197,6 +253,13 @@ jobs:
shell: bash
env:
DEBUG: "*"
# Ensure output folder exists just in case it was not created by the test run.
- run: node -e "require('fs').mkdirSync(require('path').join('test', 'output-firefox'), {recursive:true})"
- uses: actions/upload-artifact@v1
if: failure()
with:
name: firefox-win-output
path: test/output-firefox
- uses: actions/upload-artifact@v1
if: failure()
with: