Update badge and upload logs if tests fail

This commit is contained in:
Ben Jackson 2020-09-11 15:43:41 +01:00
commit 853af58124
2 changed files with 17 additions and 1 deletions

View file

@ -57,9 +57,17 @@ jobs:
export GOPATH=$HOME/go
./run_tests --install --update --report messages --quiet
name: 'Run the tests'
id: run_tests
env:
VIMSPECTOR_MIMODE: gdb
- name: "Upload test logs"
uses: actions/upload-artifact@v2
if: steps.run_tests.outcome == 'failure'
with:
name: 'test-logs-${{ runner.os }}'
path: 'tests/logs'
- run: ./make_package linux ${{ github.run_id }}
name: 'Package'
@ -98,9 +106,17 @@ jobs:
- run: ./run_tests --install --update --report messages --quiet
name: 'Run the tests'
id: run_tests
env:
VIMSPECTOR_MIMODE: lldb
- name: "Upload test logs"
uses: actions/upload-artifact@v2
if: steps.run_tests.outcome == 'failure'
with:
name: 'test-logs-${{ runner.os }}'
path: 'tests/logs'
- run: ./make_package macos ${{ github.run_id }}
name: 'Package'