ci: test monolithic scripts #134
Workflow file for this run
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: docker monolithic install | |
on: | |
pull_request: | |
paths: | |
- templates/docker-monolithic/**/* | |
defaults: | |
run: | |
working-directory: ./templates/docker-monolithic | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 4 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Shellcheck | |
run: | | |
docker run --rm \ | |
-v "${PWD}:/v" \ | |
-w "/v" \ | |
koalaman/shellcheck \ | |
-e SC1091 -e SC1117 \ | |
*.sh | |
- name: docker compose config test | |
run: | | |
echo "" > .env | |
docker compose config | |
- name: install supportpal | |
run: | | |
bash setup.sh --local -n --host "http://localhost" --email "[email protected]" | |
docker compose up -d | |
sudo apt install -y expect | |
expect verify-install.exp | |
sleep 5 | |
curl -fSL -o /tmp/test.txt http://localhost/ | |
if ! grep -q "SupportPal" /tmp/test.txt; then | |
echo "ERROR: SupportPal is not loading via HTTP" | |
exit 3 | |
fi | |
env: | |
SUPPORTPAL_LICENSE_KEY: "${{ secrets.SUPPORTPAL_MONO_LICENSE_KEY }}" | |
- name: test backup/restore | |
run: | | |
bash backup.sh | |
sleep 60 | |
bash restore.sh |