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'

View file

@ -3,7 +3,7 @@
For a tutorial and usage overview, take a look at the
[Vimspector website][website]
[![Build Status](https://dev.azure.com/puremouron/Vimspector/_apis/build/status/puremourning.vimspector?branchName=master)](https://dev.azure.com/puremouron/Vimspector/_build/latest?definitionId=1&branchName=master) [![Gitter](https://badges.gitter.im/vimspector/Lobby.svg)](https://gitter.im/vimspector/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
![Build](https://github.com/puremourning/vimspector/workflows/Build/badge.svg?branch=master) [![Gitter](https://badges.gitter.im/vimspector/Lobby.svg)](https://gitter.im/vimspector/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
<!--ts-->
* [Features and Usage](#features-and-usage)