mirror of
https://github.com/MatthewL246/pretendo-docker.git
synced 2026-05-06 05:27:35 -05:00
Man, dealing with passing arguments through multiple programs correctly is annoying. Tip: don't use eval, use "$@" instead.
38 lines
943 B
YAML
38 lines
943 B
YAML
name: Test scripts and build Docker images
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Set TERM environment variable
|
|
run: echo "TERM=xterm" >> "$GITHUB_ENV"
|
|
|
|
- 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
|