mirror of
https://github.com/System-End/dns.git
synced 2026-04-19 22:05:14 +00:00
35 lines
1 KiB
YAML
35 lines
1 KiB
YAML
name: test
|
|
|
|
on: ['push', 'pull_request_target']
|
|
|
|
jobs:
|
|
octodns:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
# For forked PRs: checkout the PR head (fork + SHA)
|
|
- name: Checkout PR head
|
|
if: github.event_name == 'pull_request_target'
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
# For normal pushes: default checkout
|
|
- name: Checkout (push)
|
|
if: github.event_name != 'pull_request_target'
|
|
uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3'
|
|
|
|
- name: Install OctoDNS
|
|
run: pip install 'octodns>=1.5.0' octodns-cloudflare octodns-dnsimple
|
|
|
|
- name: Do a dry run
|
|
run: ./bin/dry-run
|
|
env:
|
|
DNSIMPLE_ACCOUNT_NUMBER: ${{ secrets.DNSIMPLE_ACCOUNT_NUMBER }}
|
|
DNSIMPLE_API_KEY: ${{ secrets.DNSIMPLE_API_KEY_READ_ONLY }}
|
|
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN_READ_ONLY }}
|
|
|