mirror of
https://github.com/projectdiscovery/subfinder
synced 2026-06-21 14:05:24 +00:00
use -shortmode for excluding long running tests
This commit is contained in:
@@ -6,6 +6,12 @@ on:
|
||||
- '**.go'
|
||||
- '**.mod'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
short:
|
||||
description: 'Use -short flag for tests'
|
||||
required: false
|
||||
type: boolean
|
||||
default: 'false'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -59,7 +65,7 @@ jobs:
|
||||
with:
|
||||
timeout_seconds: 360
|
||||
max_attempts: 3
|
||||
command: cd v2; go test ./... -v
|
||||
command: cd v2; go test ./... -v ${{ github.event.inputs.short == 'true' && '-short' || '' }}
|
||||
|
||||
- name: Race Condition Tests
|
||||
run: go build -race ./...
|
||||
|
||||
Reference in New Issue
Block a user