allow having custom test commands

This commit is contained in:
narimiran 2024-11-11 09:11:41 +01:00
parent 9d49a43685
commit 4f31a65c5b
No known key found for this signature in database
GPG Key ID: 858F5E6FB71FD8F5
1 changed files with 7 additions and 1 deletions

View File

@ -2,6 +2,12 @@ name: CI
on:
workflow_call:
inputs:
test-command:
description: 'Test command(s) that should be used to test a package'
default: 'nimble test'
required: false
type: string
concurrency: # Cancel stale PR builds (but not push builds)
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
@ -140,4 +146,4 @@ jobs:
nimble --version
gcc --version
nimble install -y --depsOnly
nimble test
${{ inputs.test-command }}