Remove domains without NS records (#295) #325
This file contains hidden or 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: Tests | |
| on: push | |
| jobs: | |
| code-style: | |
| name: Code style | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.14 | |
| cache: "pip" | |
| - run: pip install -r requirements.txt | |
| - name: Check | |
| run: black . --check | |
| duplicates: | |
| name: No duplicate domains in list | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.14 | |
| cache: "pip" | |
| - run: pip install -r requirements.txt | |
| - name: Check for duplicate lines | |
| run: | | |
| cd scripts | |
| python3 tests.py --type duplicates | |
| regex: | |
| name: No regex domains in list | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.14 | |
| cache: "pip" | |
| - name: Install Requirements | |
| run: pip install -r requirements.txt | |
| - name: Check if list includes regex domains | |
| run: | | |
| cd scripts | |
| python3 tests.py --type regex | |
| unbound: | |
| name: Check Unbound list | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install Unbound | |
| run: sudo apt-get update && sudo apt-get install -y unbound | |
| - name: Generate Unbound config | |
| run: python3 convert.py unbound | |
| - name: Check unbound list | |
| run: unbound-checkconf unbound.conf | |
| dnsmasq: | |
| name: Check DNSMasq list | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.14 | |
| cache: "pip" | |
| - name: Generate DNSMasq config | |
| run: python3 convert.py dnsmasq | |
| - name: Install DNSMasq | |
| run: sudo apt-get update && sudo apt-get install -y dnsmasq | |
| - name: Check DNSMasq config | |
| run: sudo dnsmasq --test --conf-file=pihole-google-dnsmasq.conf |