From 4f31a65c5b211dee5c9a9ed08ef58c5b4e4eae55 Mon Sep 17 00:00:00 2001 From: narimiran Date: Mon, 11 Nov 2024 09:11:41 +0100 Subject: [PATCH] allow having custom test commands --- .github/workflows/common.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/common.yml b/.github/workflows/common.yml index e9458d2..912ae60 100644 --- a/.github/workflows/common.yml +++ b/.github/workflows/common.yml @@ -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 }}