Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 26 additions & 9 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,19 @@ jobs:
strategy:
matrix:
go-version: [1.20.x]
os: [ubuntu-latest, windows-latest, macOS-latest]
os: [windows-latest]

runs-on: ${{ matrix.os }}
steps:

# TODO: remove this step
- uses: actions/checkout@v3
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
timeout-minutes: 60
with:
detached: true

- name: Set up Go
uses: actions/setup-go@v4
with:
Expand All @@ -41,6 +50,14 @@ jobs:
run: go test ./...
working-directory: v2/

# issue with goccy/go-yaml: https://github.com/goccy/go-yaml/issues/65
# - name: Convert Line Endings on Windows
# if: ${{ matrix.os == 'windows-latest' }}
# run: |
# Get-ChildItem -Recurse -File | ForEach-Object { dos2unix $_.FullName }
# shell: pwsh
# working-directory: integration_tests/

- name: Integration Tests
timeout-minutes: 50
env:
Expand All @@ -50,12 +67,12 @@ jobs:
chmod +x run.sh
bash run.sh ${{ matrix.os }}
working-directory: integration_tests/

# - name: Race Condition Tests
# if: ${{ matrix.os != 'windows-latest' }} # known issue: https://github.com/golang/go/issues/46099
# run: go run -race . -l ../functional-test/targets.txt -id tech-detect,tls-version
# working-directory: v2/cmd/nuclei/

- name: Race Condition Tests
if: ${{ matrix.os != 'windows-latest' }} # known issue: https://github.com/golang/go/issues/46099
run: go run -race . -l ../functional-test/targets.txt -id tech-detect,tls-version
working-directory: v2/cmd/nuclei/

- name: Example Code Tests
run: go build .
working-directory: v2/examples/
# - name: Example Code Tests
# run: go build .
# working-directory: v2/examples/
2 changes: 1 addition & 1 deletion .github/workflows/functional-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
os: [windows-latest]
steps:
- name: Set up Go
uses: actions/setup-go@v4
Expand Down