Archive build artifacts before running spectron test

This commit is contained in:
Labhansh Agrawal 2021-10-02 18:19:11 +05:30
parent b04225b3a3
commit 64a2f90957

View file

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