diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8b68917..f72943a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,15 +1,5 @@ name: Tests -on: - push: - branches: - - master - paths: - - 'pihole-google.txt' - pull_request: - branches: - - master - paths: - - 'pihole-google.txt' +on: push jobs: duplicates: name: No duplicate domains in list @@ -42,4 +32,13 @@ jobs: - name: Check if list includes regex domains run: | cd scripts - python3 tests.py --type regex \ No newline at end of file + python3 tests.py --type regex + unbound: + name: Check Unbound list + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install Unbound + run: sudo apt-get update && sudo apt-get install -y unbound + - name: Check unbound list + run: unbound-checkconf unbound.conf \ No newline at end of file diff --git a/unbound.conf b/unbound.conf new file mode 100644 index 0000000..74794b6 --- /dev/null +++ b/unbound.conf @@ -0,0 +1,5 @@ +# This is an example Unbound config file. +# Used primarily to check pihole-google-unbound.conf for errors + +server: + include: "pihole-google-unbound.conf"