Fix units (seconds -> milliseconds) in a description of Timeout field in Options struct #1889
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🧪 Functional Test | |
on: | |
pull_request: | |
paths: | |
- '**.go' | |
- '**.mod' | |
workflow_dispatch: | |
jobs: | |
functional: | |
name: Functional Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] # Todo: windows-latest, macOS-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21.x | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Install required packages (libpcap-dev, nmap, simplehttpserver) | |
run: | | |
sudo apt install libpcap-dev | |
sudo apt install nmap | |
go install -race github.com/projectdiscovery/simplehttpserver/cmd/simplehttpserver@latest | |
- name: Run the simplehttpserver on 127.0.0.1:8000 | |
run: | | |
export PATH=$PATH:$(go env GOPATH)/bin | |
simplehttpserver -listen 127.0.0.1:8000 & | |
- name: Functional Tests | |
run: | | |
chmod +x run.sh | |
bash run.sh | |
working-directory: cmd/functional-test |