ci-test #799
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci-test | |
on: | |
push: {} | |
pull_request: {} | |
schedule: | |
# ┌───────────── minute (0 - 59) | |
# │ ┌───────────── hour (0 - 23) | |
# │ │ ┌───────────── day of the month (1 - 31) | |
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) | |
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) | |
# │ │ │ │ │ | |
# │ │ │ │ │ | |
# │ │ │ │ │ | |
# * * * * * | |
- cron: '7 10 * * 6' # every Saturday at 10:07 UTC | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
cibuild: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: cat /proc/cpuinfo | |
- name: check-for-nested-virtualization | |
run: grep -E '^flags.*(vmx|svm)' /proc/cpuinfo | |
&& echo "looks we can nest virtual machines" | |
|| echo "nested virtual machines unlikely to work" | |
- name: try-to-modprobe | |
run: sudo modprobe kvm-intel || sudo modprobe kvm-amd || true | |
- name: apt-get-update | |
run: sudo apt-get update | |
- name: apt-get-upgrade | |
run: sudo apt-get upgrade -y | |
- name: apt-get-install-deps | |
run: sudo apt-get install -y | |
build-essential | |
docker-compose | |
genisoimage | |
qemu-system-x86 | |
qemu-utils | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '16' | |
- run: echo 'foo' > adfice_mariadb_root_password | |
- run: echo 'foo' > adfice_mariadb_user_password | |
- run: echo 'foo' > valportaal_mariadb_root_password | |
- run: echo 'foo' > valportaal_mariadb_user_password | |
- run: > | |
TEST_BROWSER="chrome:headless" | |
VM_PORT_SSH=55022 | |
VM_PORT_HTTP=55080 | |
VM_PORT_HTTPS=55443 | |
make check | |
# - run: git submodule update --init --recursive | |
# - run: echo 'foo' > centos-vm/vm_root_password | |
# - run: > | |
# TEST_BROWSER="chrome:headless" | |
# VM_PORT_SSH=55022 | |
# VM_PORT_HTTP=55080 | |
# VM_PORT_HTTPS=55443 | |
# make -j1 vm-check |