mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-29 22:23:02 +00:00
* If the tests are executed through GitHub actions and there are failed integration tests, they will be re-executed with verbose output to help figuring out the underlying issues. * Added some grouping to make reading the logs easier Ticket: #1365
38 lines
828 B
YAML
38 lines
828 B
YAML
name: 🔨 Build Test
|
|
on:
|
|
push:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
name: Test Builds
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.17
|
|
|
|
- name: Check out code
|
|
uses: actions/checkout@v2
|
|
|
|
- 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
|
|
run: bash run.sh
|
|
working-directory: integration_tests/
|
|
|
|
# At the bottom for known issue on OSX - https://github.com/projectdiscovery/nuclei/issues/1309
|
|
- name: Race Condition Tests
|
|
run: go build -race .
|
|
working-directory: v2/cmd/nuclei/
|