From 64a2f90957eb561c20c726d4b70c37fc6c2d381c Mon Sep 17 00:00:00 2001 From: Labhansh Agrawal Date: Sat, 2 Oct 2021 18:19:11 +0530 Subject: [PATCH] Archive build artifacts before running spectron test --- .github/workflows/nodejs.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 6d36d093..5256fbc4 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -47,15 +47,6 @@ jobs: CSC_KEY_PASSWORD: ${{ secrets.MAC_CERT_P12_PASSWORD }} WIN_CSC_LINK: ${{ secrets.WIN_CERT_P12_BASE64 }} WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CERT_P12_PASSWORD }} - - name: Test Spectron - if: runner.os != 'Linux' - run: yarn run test:spectron - - name: Archive Spectron test screenshot - if: runner.os != 'Linux' - uses: actions/upload-artifact@v2 - with: - name: spectron - path: dist/tmp/*.png - name: Archive Build Artifacts uses: LabhanshAgrawal/upload-artifact@v3 with: @@ -66,6 +57,15 @@ jobs: dist/*.deb dist/*.rpm dist/*.exe + - name: Test Spectron + if: runner.os != 'Linux' + run: yarn run test:spectron + - name: Archive Spectron test screenshot + if: runner.os != 'Linux' + uses: actions/upload-artifact@v2 + with: + name: spectron + path: dist/tmp/*.png - name: Save the pr number in an artifact if: github.event_name == 'pull_request' env: