Update README.md #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |