Skip to content

Commit

Permalink
Fix CI (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmax committed Jan 23, 2024
1 parent 51c49b0 commit 07239b7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 25 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Run Unittests

on: [push, pull_request]

jobs:
vagrant-run-unittest:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2

- name: install dependencies
run: sudo ./install_debian.sh

- name: Run Unittests
run: ./run_unittests_locally.sh
24 changes: 0 additions & 24 deletions .github/workflows/vagrant-unittest.yml

This file was deleted.

6 changes: 5 additions & 1 deletion install_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ set -e
# provisioning for Debian / Ubuntu
echo "ONLY RUN THIS SCRIPT on a disposable VM or a PC specially for setting up kasse. It will change your xsession and uninstall some packages."
echo "press ctrl-c to exit, Enter to continue (will continue automatically under Vagrant provisioner)"
read
if "$GITHUB_ACTIONS" == 1
echo "continuing, we are in GitHub CI"
else
read
fi

[ -d /home/vagrant ] && echo "Running under Vagrant, using the vagrant user" && RUNNING_IN_VAGRANT=true || RUNNING_IN_VAGRANT=false

Expand Down

0 comments on commit 07239b7

Please sign in to comment.