-
Notifications
You must be signed in to change notification settings - Fork 10
39 lines (34 loc) · 948 Bytes
/
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
name: Test scripts and build Docker images
on:
push:
paths-ignore:
- "docs/**"
pull_request:
paths-ignore:
- "docs/**"
workflow_dispatch:
jobs:
build-test:
runs-on: ubuntu-latest
env:
TERM: xterm
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Apply Docker Compose CI overrides
run: ln -s .github/compose.ci.yml compose.override.yml
- name: Run the setup script
run: ./setup.sh --server-ip 127.0.0.1 --force --verbose
- name: Test starting the servers
run: |
docker compose up -d
echo Waiting for 60 seconds...
sleep 60
docker compose ps -a
docker compose logs
# Fail if any containers exited
! docker compose ps -a | grep Exited