mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-28 19:15:35 +00:00
* Added tlsx integration to nuclei * tls tests fix * Added helper functions + upgrade tlsx to fix * go mod update * workflow fix to race test on windows Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
name: 🔨 Build Test
|
|
on:
|
|
push:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
name: Test Builds
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
steps:
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: 1.18
|
|
|
|
- name: Check out code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Build
|
|
run: go build .
|
|
working-directory: v2/cmd/nuclei/
|
|
|
|
- name: Test
|
|
run: go test ./...
|
|
working-directory: v2/
|
|
|
|
- name: Integration Tests
|
|
env:
|
|
GH_ACTION: true
|
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
|
run: |
|
|
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 . -u scanme.sh
|
|
working-directory: v2/cmd/nuclei/ |