Skip to content

[fix] Fixed bugs in auto-install script #299 #457

[fix] Fixed bugs in auto-install script #299

[fix] Fixed bugs in auto-install script #299 #457

Workflow file for this run

---
name: Merge Tests
on:
pull_request:
branches:
- master
jobs:
build:
name: CI Build
runs-on: ubuntu-22.04
steps:
- name: Git Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install Testing Requirements
run: |
sudo pip install -r requirements-test.txt
sudo curl -sL -o /bin/hadolint "https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64"
sudo chmod +x /bin/hadolint
- name: QA checks
run: ./run-qa-checks
- name: Setup
run: |
echo "127.0.0.1 dashboard.openwisp.org api.openwisp.org" | sudo tee -a /etc/hosts
# disable metric collection during builds
sed -i 's/METRIC_COLLECTION=True/METRIC_COLLECTION=False/' .env
- name: Build Images
run: make compose-build nfs-build
- name: Use auto-install script to start containers
# Do not remove the blank lines from the input.
run: |
GIT_BRANCH="${{ github.ref_name }}" SKIP_PULL=true sudo -E ./deploy/auto-install.sh << EOF
edge
dashboard.openwisp.org
api.openwisp.org
vpn.openwisp.org
[email protected]
EOF
- name: Test
# The auto-install script installs docker-openwisp by default in
# /opt/openwisp/docker-openwisp. To ensure the test runs correctly
# and environment variables remain intact, it is essential to
# execute the test from this directory.
run: |
(make develop-pythontests && make stop) || (docker compose logs && exit 1)
working-directory: /opt/openwisp/docker-openwisp
env:
SELENIUM_HEADLESS: 1