forked from mail-in-a-box/mailinabox
-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (37 loc) · 1.33 KB
/
commit-tests.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
name: commit-tests
on: [push, workflow_dispatch]
jobs:
# MiaB-LDAP using encryption-at-rest and connected to a remote Nextcloud
remote-nextcloud-docker-ehdd:
runs-on: ubuntu-22.04
env:
PRIMARY_HOSTNAME: box1.abc.com
EHDD_KEYFILE: /tmp/keyfile
steps:
- uses: actions/checkout@v4
- name: create ehdd keyfile
run: sudo -E echo -n "secret" >/tmp/keyfile
- name: setup
run: sudo -E tests/system-setup/remote-nextcloud-docker.sh
- name: test-runner
run: sudo -E tests/runner.sh -dumpoutput -no-smtp-remote remote-nextcloud ehdd default
- uses: actions/upload-artifact@v4
if: failure()
with:
name: tests-output
path: tests/out/**/screenshot.png
if-no-files-found: ignore
retention-days: 5
# install upstream miab, then migrate to miabldap
upgrade-from-upstream:
runs-on: ubuntu-22.04
env:
PRIMARY_HOSTNAME: box2.abc.com
# TODO: change UPSTREAM_TAG to 'main' once upstream is installable
UPSTREAM_TAG: v67
steps:
- uses: actions/checkout@v4
- name: setup
run: sudo -E tests/system-setup/upgrade-from-upstream.sh --populate=basic --populate=totpuser
- name: test-runner
run: sudo -E tests/runner.sh -dumpoutput -no-smtp-remote upgrade-basic upgrade-totpuser default