WIP: CI Test install

This commit is contained in:
Nicolas Meienberger 2022-05-16 20:04:05 +02:00
parent 8638b83c58
commit 33760e69bb
3 changed files with 19 additions and 3 deletions

View file

@ -47,3 +47,19 @@ jobs:
- name: Run tests
run: pnpm -r test
test-install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 14
- name: Create user and group
run: useradd -u 1000 test
- name: Run install script
run: sudo ./scripts/start.sh

View file

@ -23,9 +23,9 @@ if ! command -v ansible-playbook > /dev/null; then
sudo pip3 install ansible
fi
echo "Running ansible playbook setup.yml"
ansible-playbook ansible/setup.yml -i ansible/hosts -K -e username="$USERNAME"
ansible-playbook ansible/setup.yml -i ansible/hosts -e username="$USERNAME"
# echo "Configuring permissions..."
# echo

View file

@ -116,7 +116,7 @@ done
mv -f "$ENV_FILE" "$ROOT_FOLDER/.env"
mv -f "$ENV_FILE_SYSTEM_API" "$ROOT_FOLDER/packages/system-api/.env"
ansible-playbook ansible/start.yml -i ansible/hosts -K -e username="$USERNAME"
ansible-playbook ansible/start.yml -i ansible/hosts -e username="$USERNAME"
# Run docker-compose
docker-compose --env-file "${ROOT_FOLDER}/.env" up --detach --remove-orphans --build || {