-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.35 KB
/
integration.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
name: Integration test
on:
pull_request:
push:
workflow_call:
jobs:
# Label of the container job
integration-test:
services:
powerdns:
image: docker.io/${{ matrix.powerdns_container }}
env:
PDNS_AUTH_API_KEY: 1FooBarBaz2!
ports:
- "1053:53"
- "1053:53/udp"
- "8081:8081"
runs-on: ubuntu-latest
strategy:
matrix:
powerdns_container: ["powerdns/pdns-auth-49:4.9.3"]
env:
POWERDNS_CLI_APIKEY: 1FooBarBaz2!
POWERDNS_CLI_URL: http://localhost:8081
steps:
- name: Clone repository
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.10.16
cache: pip
- name: Build cli
run: pip install .
- name: Test zone actions
run: |
powerdns-cli add-zone example.org 10.0.0.1 NATIVE >> $GITHUB_STEP_SUMMARY
powerdns-cli add-zone example.com. 10.0.0.1 MASTER >> $GITHUB_STEP_SUMMARY
powerdns-cli add-zone example.org 10.0.0.1 NATIVE >> $GITHUB_STEP_SUMMARY
powerdns-cli delete-zone -f example.com. >> $GITHUB_STEP_SUMMARY
powerdns-cli delete-zone -f example.com >> $GITHUB_STEP_SUMMARY
- name: Test record actions
run: |
powerdns-cli add-record test example.org A 10.0.0.1 >> $GITHUB_STEP_SUMMARY