Add test-directory input to prepare-test action

This commit is contained in:
Michael B. Gale
2026-01-21 15:13:28 +00:00
parent 0437a6d257
commit 32c67450a1
+7 -1
View File
@@ -12,6 +12,10 @@ inputs:
description: "If true, we setup kotlin"
default: 'true'
required: true
test-directory:
description: "The directory containing the test project that should be moved to the workspace root"
required: false
default: "tests/multi-language-repo"
outputs:
tools-url:
description: "The value that should be passed as the 'tools' input of the 'init' step."
@@ -21,10 +25,12 @@ runs:
steps:
- name: Move codeql-action
shell: bash
env:
TEST_DIR: ${{ inputs.test-directory }}
run: |
mkdir ../action
mv * .github ../action/
mv ../action/tests/multi-language-repo/{*,.github} .
mv ../action/$TEST_DIR/{*,.github} .
mv ../action/.github/workflows .github
- id: get-url
name: Determine URL