chore(deps): bump github.com/projectdiscovery/hmap from 0.0.70 to 0.0.71 #2050
Workflow file for this run
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: 🔨 Build Test | |
on: | |
pull_request: | |
paths: | |
- '**.go' | |
- '**.mod' | |
workflow_dispatch: | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21.x | |
- name: Install libpcap-dev | |
run: sudo apt install libpcap-dev | |
- name: Install nmap | |
run: sudo apt install nmap | |
- name: Build | |
run: go build . | |
working-directory: cmd/naabu/ | |
- name: Test | |
run: go test -race ./... | |
- name: Integration Tests | |
env: | |
GH_ACTION: true | |
run: bash run.sh | |
working-directory: integration_tests/ | |
- name: Race Condition Tests - Standard User | |
run: | | |
go run -race . -host scanme.sh | |
working-directory: cmd/naabu/ | |
- name: Race Condition Tests - Root User | |
run: | | |
sudo go run -race . -host scanme.sh | |
working-directory: cmd/naabu/ | |
build-mac: | |
runs-on: 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 libpcap-dev | |
run: brew install libpcap | |
- name: Install nmap | |
run: brew install nmap | |
- name: Build | |
run: go build . | |
working-directory: cmd/naabu/ | |
- name: Test | |
run: go test -race ./... | |
- name: Integration Tests | |
env: | |
GH_ACTION: true | |
run: bash run.sh | |
working-directory: integration_tests/ | |
- name: Race Condition Tests - Standard User | |
run: | | |
go run -race . -host scanme.sh | |
working-directory: cmd/naabu/ | |
- name: Race Condition Tests - Root User | |
run: | | |
sudo go run -race . -host scanme.sh | |
working-directory: cmd/naabu/ | |
build-windows: | |
runs-on: windows-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: Build | |
run: go build . | |
working-directory: cmd/naabu/ | |
- name: Test | |
run: go test -race ./... | |
- name: Race Condition Tests | |
# Known issue: https://github.com/golang/go/issues/46099 | |
run: | | |
# go run -race . -host scanme.sh | |
# sudo go run -race . -host scanme.sh | |
working-directory: cmd/naabu/ |