Skip to content

Merge pull request #114 from PeterDaveHello/workflow #24

Merge pull request #114 from PeterDaveHello/workflow

Merge pull request #114 from PeterDaveHello/workflow #24

Workflow file for this run

name: Tests
on:
push:
branches: [ main, master ]
paths:
- 'list'
- 'inactive'
- '.github/workflows/tests.yml'
pull_request:
branches: [ main, master ]
paths:
- 'list'
- 'inactive'
- '.github/workflows/tests.yml'
jobs:
nslookup-check:
runs-on: ubuntu-latest
continue-on-error: true # Equivalent to allow_failures in Travis
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 5
- name: Configure DNS servers
run: |
echo 'nameserver 8.8.4.4' | sudo tee /etc/resolv.conf
echo 'nameserver 9.9.9.10' | sudo tee -a /etc/resolv.conf
echo 'nameserver 77.88.8.8' | sudo tee -a /etc/resolv.conf
echo 'nameserver 168.95.1.1' | sudo tee -a /etc/resolv.conf
- name: Run nslookup test
run: ./tests/nslookup
duplicate-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 5
- name: Run duplicate test
run: ./tests/duplicate
sorting-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 5
- name: Run sorting tests
run: |
./tests/sort
echo 'example.com' >> list && ! ./tests/sort