Skip to content

Commit

Permalink
Add testing to CI
Browse files Browse the repository at this point in the history
Signed-off-by: Marek Maškarinec <[email protected]>
  • Loading branch information
marekmaskarinec committed Feb 19, 2024
1 parent e590654 commit 7bcc6a5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
run: make
- name: Build windows
run: make cross
- name: Test
run: ./cmd/checkall.sh
- name: Deploy
run: |
rsync tophat [email protected]:www/tophat-web/dl/tophat-linux
Expand Down
29 changes: 29 additions & 0 deletions cmd/checkall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/sh -e

# check main.um
tophat -check

for f in tests/*.um; do
tophat -check -main $f
done

cd examples/extensions
tophat -check

cd ../flappy
tophat -check

cd ../hello-world
tophat -check

cd ../platformer
tophat -check

cd ../pomodoro
tophat -check

cd ../space-shooter
tophat -check

cd ../tetris
tophat -check

0 comments on commit 7bcc6a5

Please sign in to comment.