nuclei/.github/workflows/build-test.yml

41 lines
917 B
YAML
Raw Normal View History

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:
jobs:
2020-06-01 19:34:57 +00:00
build:
2021-06-15 16:01:56 +00:00
name: Test Builds
runs-on: ${{ matrix.os }}
strategy:
matrix:
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
- 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
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 .
working-directory: v2/cmd/nuclei/