use -shortmode for excluding long running tests

This commit is contained in:
Doğan Can Bakır
2023-08-21 11:45:27 +00:00
parent e4b5789a33
commit 43ebc2ef33
4 changed files with 19 additions and 1 deletions
+7 -1
View File
@@ -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 ./...