From 7189d199132cdea9e5563fc3a0a1883c73302cde Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Thu, 9 Apr 2020 16:57:01 -0700 Subject: [PATCH] feat(ci): upload test output folder from github actions (#1733) --- .github/workflows/tests.yml | 63 +++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5cd417346b..397e6a5bc1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: