diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..9eaac49 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,17 @@ +name: validate blocklist entries + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + setup: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: '3.x' + - run: pip install -r requirements.txt && python verify.py diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 306b569..0000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -language: python -python: - - "3.6" -script: - - python verify.py - diff --git a/verify.py b/verify.py index 2512184..5a0ff43 100644 --- a/verify.py +++ b/verify.py @@ -128,3 +128,5 @@ if __name__ == "__main__": # Check if any domains are in both the allowlist and blocklist check_for_intersection(allowlist, blocklist) + + print("All domain entries seem valid.")