-
-
Notifications
You must be signed in to change notification settings - Fork 24
56 lines (48 loc) · 1.3 KB
/
tests.yml
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
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