workflows: Run some simple tests

This commit is contained in:
Tom Stellard 2021-03-04 18:56:53 -08:00 committed by Tom Stellard
parent 42dd94ea30
commit dc595ced26
1 changed files with 26 additions and 1 deletions

View File

@ -1,6 +1,8 @@
name: Package bygfoot
on: push
on:
push:
pull_request:
env:
BYGFOOT_VERSION: "2.3.3-unofficial-git-${{ github.sha }}"
@ -43,6 +45,29 @@ jobs:
name: "bygfoot-${{ env.BYGFOOT_VERSION }}-linux${{ matrix.build-suffix }}"
path: "*.bz2"
test-linux:
needs:
- package-linux
runs-on:
- ubuntu-16.04
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with:
name: "bygfoot-${{ env.BYGFOOT_VERSION }}-linux"
- name: Unpack binary package
run: |
ls
tar -xjf bygfoot-${{ env.BYGFOOT_VERSION }}.tar.bz2
- name: Run Tests
run: |
bash ./test/test-load-save.sh ./bygfoot-${{ env.BYGFOOT_VERSION }}/bygfoot
bash ./test/test-country-defs.sh ./bygfoot-${{ env.BYGFOOT_VERSION }}/bygfoot || true
package-windows:
runs-on:
- windows-2016