-
-
Notifications
You must be signed in to change notification settings - Fork 118
90 lines (85 loc) · 2.47 KB
/
Copy pathtests.yml
File metadata and controls
90 lines (85 loc) · 2.47 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Tests
on: push
jobs:
code-style:
name: Code style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- 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@v6
- 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@v6
- 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@v6
- 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@v6
- 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
rpz:
name: Check RPZ zone file
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: 3.14
cache: "pip"
- name: Generate RPZ zone file
run: python3 convert.py rpz
- name: Install BIND tools
run: sudo apt-get update && sudo apt-get install -y bind9-utils
- name: Check RPZ zone file
run: named-checkzone rpz.no-google.local pihole-google-rpz.txt