mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-26 01:45:25 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
41 lines
917 B
YAML
41 lines
917 B
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@v2
|
|
with:
|
|
go-version: 1.17
|
|
|
|
- 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
|
|
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/
|