Add RUN_ONLY_TEST to limit which tests are run.

For testing, you can set the repo variable RUN_ONLY_TEST in your repo
(Repo -> Settings -> Security -> Actions -> Variables) to run only that test.
This commit is contained in:
Darren Tucker
2025-05-10 07:44:48 +10:00
parent 140ba45895
commit 82f1f52c55
+6
View File
@@ -111,6 +111,12 @@ jobs:
- { target: macos-15, config: pam }
runs-on: ${{ matrix.target }}
steps:
- name: check RUN_ONLY_TEST
# For testing, you can set the repo variable RUN_ONLY_TEST in your repo
# (Repo -> Settings -> Security -> Actions -> Variables) to run only
# that test config.
if: vars.RUN_ONLY_TEST != ''
run: sh -c 'if [ "${{ vars.RUN_ONLY_TEST }}" != "${{ matrix.target }} ${{matrix.config }}" ]; then exit 1; else exit 0; fi'
- name: set cygwin git params
if: ${{ startsWith(matrix.target, 'windows') }}
run: git config --global core.autocrlf input