Skip to content

[fix] Include allowed_hostnames in nginx Content-Security-Policy #366 #625

[fix] Include allowed_hostnames in nginx Content-Security-Policy #366

[fix] Include allowed_hostnames in nginx Content-Security-Policy #366 #625

Workflow file for this run

---
name: Ansible OpenWISP2 CI Build
on: # yamllint disable-line rule:truthy
push:
branches:
- master
- dev
pull_request:
branches:
- master
- dev
jobs:
build:
name: Build ${{ matrix.distro }}
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
distro:
- ubuntu2004
- ubuntu2204
- debian11
increase-verbosity:

Check failure on line 28 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / Ansible OpenWISP2 CI Build

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 28, Col: 5): Unexpected value 'increase-verbosity'
steps:
- name: Check Docker Version
run: docker --version
- name: Check Docker Info
run: docker info
- name: Enable Debug Output
run: |
sudo mkdir -p /etc/systemd/system/docker.service.d
echo '[Service]' | sudo tee /etc/systemd/system/docker.service.d/override.conf
echo 'Environment="DOCKER_OPTS=--debug"' | sudo tee -a /etc/systemd/system/docker.service.d/override.conf
sudo systemctl daemon-reload
sudo systemctl restart docker
sudo journalctl -u docker.service --no-pager --since "5 minutes ago"
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install python dependencies
run: |
pip install molecule molecule-plugins[docker] yamllint ansible-lint docker
pip install openwisp-utils[qa]
- name: Install Ansible Galaxy dependencies
run: ansible-galaxy collection install "community.general:>=3.6.0"
- name: QA checks
run: |
openwisp-qa-check --skip-isort --skip-flake8 --skip-checkmigrations --skip-black
- name: Tests
run: |
mkdir -p ~/.ansible/roles
ln -s $GITHUB_WORKSPACE ~/.ansible/roles/openwisp.openwisp2
molecule test
env:
ROLE_NAME: openwisp2
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
MOLECULE_DISTRO: ${{ matrix.distro }}
ANSIBLE_ROLES_PATH: /home/runner/.cache/molecule/ansible-openwisp2/default/roles:/home/runner/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles
import:
name: Update imports on Ansible Galaxy
runs-on: ubuntu-22.04
container: python:3-slim
needs:
- build
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
steps:
- name: Install ansible
run: pip install ansible
- name: Update imports on Ansible Galaxy
run: |
ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }} openwisp ansible-openwisp2