Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: On Pull Request

on:
workflow_dispatch:
pull_request:
types: [opened, reopened]

jobs:
run-ansible:

runs-on: ubuntu-latest

env:
ANSIBLE_FORCE_COLOR: True

steps:
- uses: actions/checkout@v4

- name: Install pip dependencies
run: |
pip install -r test-requirements.txt

- name: Run playbook
run: >
ansible-playbook -i ansible/inventory ansible/run.yml

1 change: 1 addition & 0 deletions ansible/inventory/hosts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
localhost ansible_connection=local
12 changes: 12 additions & 0 deletions ansible/run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
- name: Ensure Zuul is configured
gather_facts: false
hosts: localhost

tasks:
- name: Ensure Zuul namespace is created
kubernetes.core.k8s:
name: zuul
api_version: v1
kind: Namespace
state: present
Loading