Skip to content

Commit

Permalink
workflows: Run some simple tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tstellar committed Mar 6, 2021
1 parent 42dd94e commit dc595ce
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Package bygfoot

on: push
on:
push:
pull_request:

env:
BYGFOOT_VERSION: "2.3.3-unofficial-git-${{ github.sha }}"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dc595ce

Please sign in to comment.