2021-06-16 10:37:19 +00:00
|
|
|
name: 🔨 Build Test
|
2020-06-01 19:34:57 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
2021-06-15 16:01:56 +00:00
|
|
|
workflow_dispatch:
|
2020-08-25 21:24:31 +00:00
|
|
|
|
2021-12-14 16:13:53 +00:00
|
|
|
jobs:
|
2020-06-01 19:34:57 +00:00
|
|
|
build:
|
2021-06-15 16:01:56 +00:00
|
|
|
name: Test Builds
|
2021-12-16 08:17:29 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-12-18 12:59:13 +00:00
|
|
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
2020-06-01 19:34:57 +00:00
|
|
|
steps:
|
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
2021-09-01 10:10:53 +00:00
|
|
|
go-version: 1.17
|
2020-06-01 19:34:57 +00:00
|
|
|
|
|
|
|
- name: Check out code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2021-12-14 16:13:53 +00:00
|
|
|
- name: Build
|
|
|
|
run: go build .
|
|
|
|
working-directory: v2/cmd/nuclei/
|
|
|
|
|
2020-06-01 19:34:57 +00:00
|
|
|
- name: Test
|
2021-02-27 07:01:17 +00:00
|
|
|
run: go test ./...
|
|
|
|
working-directory: v2/
|
|
|
|
|
|
|
|
- name: Integration Tests
|
2021-12-14 16:13:53 +00:00
|
|
|
env:
|
|
|
|
GH_ACTION: true
|
2021-02-27 07:08:24 +00:00
|
|
|
run: bash run.sh
|
|
|
|
working-directory: integration_tests/
|
2020-06-01 19:34:57 +00:00
|
|
|
|
2021-12-10 16:12:46 +00:00
|
|
|
# At the bottom for known issue on OSX - https://github.com/projectdiscovery/nuclei/issues/1309
|
|
|
|
- name: Race Condition Tests
|
|
|
|
run: go build -race .
|
2021-12-14 16:13:53 +00:00
|
|
|
working-directory: v2/cmd/nuclei/
|