Skip to content

Fix error

Fix error #8

Workflow file for this run

---
name: CI
on:
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test:
name: Test Ansible Role
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: Install python
run: sudo apt update && sudo apt install -y python3 python3-pip python3-setuptools netcat-openbsd
- name: Install Ansible
run: sudo pip3 install ansible==8.4.0
- name: Create ansible.cfg with correct roles_path
run: sudo printf '[defaults]\nhost_key_checking = False\nroles_path=../' > ansible.cfg
- name: Basic role syntax check
run: sudo ansible-playbook tests/test.yml -i tests/inventory --syntax-check
- name: Basic role check
run: sudo ansible-playbook tests/test.yml -i tests/inventory
- name: Check if noVNC is running
run: sleep 5 && curl -k https://localhost:8443/ --fail