forked from codeaffen/phpipam-ansible-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.05 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
name: CI
on: [push, pull_request]
jobs:
test:
name: end to end tests
runs-on: ubuntu-latest
strategy:
matrix:
phpipam-version: ['v1.4x', 'v1.5x']
steps:
- name: Upgrade docker-compose
run: sudo apt-get install --upgrade docker-compose
- uses: actions/checkout@v3
- name: setup phpipam
uses: codeaffen/phpipam-action@v2
with:
ipam_version: ${{ matrix.phpipam-version }}
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: setup test environment
run: |
make test-setup
env:
PHPIPAM_URL: "https://localhost"
PHPIPAM_APPID: "ansible"
PHPIPAM_USERNAME: "admin"
PHPIPAM_PASSWORD: "ipamadmin"
- name: run example setup
run: |
make test-example_setup
env:
PHPIPAM_VALIDATE_CERTS: false
- name: run playbook tests
run: |
make test-all
env:
PHPIPAM_VALIDATE_CERTS: "false"