-
Notifications
You must be signed in to change notification settings - Fork 4
76 lines (63 loc) · 1.99 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Bats Testing
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test-linux:
runs-on: ubuntu-latest
steps:
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y git make gcc
- name: Checkout Repository
uses: actions/checkout@v4
- name: Golang install
uses: actions/setup-go@v4
- name: Install amass
run: go install -v github.com/owasp-amass/amass/v3/...@master
- name: Install subfinder
run: go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
- name: Install alterx
run: go install github.com/projectdiscovery/alterx/cmd/alterx@latest
- name: Install puredns
run: go install github.com/d3mondev/puredns/v2@latest
- name: Install massdns
run: |
git clone https://github.com/blechschmidt/massdns.git
cd massdns
make
sudo cp bin/massdns /usr/local/bin/
- name: Setup Bats and bats libs
uses: brokenpip3/[email protected]
- name: Run Bats Tests on Linux
run: bats -t tests
shell: bash
test-macos:
runs-on: macos-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Golang install
uses: actions/setup-go@v4
- name: Install Dependencies
run: brew install coreutils
- name: Install amass
run: go install -v github.com/owasp-amass/amass/v3/...@master
- name: Install subfinder
run: go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
- name: Install alterx
run: go install github.com/projectdiscovery/alterx/cmd/alterx@latest
- name: Install puredns
run: go install github.com/d3mondev/puredns/v2@latest
- name: Install massdns
run: brew install massdns
- name: Setup Bats and bats libs
uses: mig4/setup-bats@v1
with:
bats-version: 1.10.0
- name: Run Bats Tests on macOS
run: bats -t tests
shell: bash