-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (62 loc) · 2.21 KB
/
ci-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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