-
Notifications
You must be signed in to change notification settings - Fork 19
55 lines (51 loc) · 1.37 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: MiCADO Tests
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run ansible-lint
uses: ansible-community/ansible-lint-action@v6.0.2
with:
override-deps: |
rich>=9.5.1,<11.0.0
targets: |
micado.yml
edge.yml
worker.yml
play-ubuntu-20:
runs-on: ubuntu-20.04
needs: lint
steps:
- uses: actions/checkout@v2
- name: Remove existing K8s installations
run: sudo apt auto-remove kubectl containernetworking-plugins -y
- name: Replace hosts file
run: sudo cp ./tests/hosts.yml ./playbook/inventory/hosts.yml
- name: Run MiCADO Playbook
uses: dawidd6/action-ansible-playbook@v2
with:
directory: ./playbook/
playbook: project/micado.yml
play-ubuntu-22:
runs-on: ubuntu-22.04
needs: lint
steps:
- uses: actions/checkout@v2
- name: Remove existing K8s installations
run: sudo apt auto-remove kubectl ansible containernetworking-plugins -y
- name: Replace hosts file
run: sudo cp ./tests/hosts.yml ./playbook/inventory/hosts.yml
- name: Run MiCADO Playbook
uses: dawidd6/action-ansible-playbook@v2
with:
directory: ./playbook/
playbook: project/micado.yml