Skip to content

Commit

Permalink
replace travis with gha (disposable-email-domains#269)
Browse files Browse the repository at this point in the history
* replace travis with gha

* install reqs

* write a message when check is ok

so it can be read easily in CI
  • Loading branch information
martenson authored Apr 28, 2021
1 parent 4dd520a commit 760a6e5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

2 changes: 2 additions & 0 deletions verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,5 @@ def check_for_intersection(filename_a, filename_b):

# Check if any domains are in both the allowlist and blocklist
check_for_intersection(allowlist, blocklist)

print("All domain entries seem valid.")

0 comments on commit 760a6e5

Please sign in to comment.