-
Notifications
You must be signed in to change notification settings - Fork 193
45 lines (35 loc) · 1.05 KB
/
build-test.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
name: 🔨 Build Test
on:
pull_request:
workflow_dispatch:
jobs:
build:
name: Test Builds
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Test
run: go test ./...
- name: Build
run: go build .
working-directory: cmd/shuffledns/
# Installing massdns
- uses: actions/checkout@v4
with:
repository: blechschmidt/massdns
path: ./massdns
- name: Install massdns
working-directory: ./massdns
run: |
make all
sudo make install
# Tests
- name: Bruteforce Mode Test
run: go run . -v -d scanme.sh -r ../../tests/resolvers.txt -w ../../tests/wordlist.txt -mode bruteforce
working-directory: cmd/shuffledns/
- name: Resolve Mode Test
run: go run . -l ../../tests/subdomains.txt -v -d wrongdomain.sh -r ../../tests/resolvers.txt -mode resolve -auto-domain
working-directory: cmd/shuffledns/