[openssh-commits] [openssh] 01/07: Add RUN_ONLY_TEST to limit which tests are run.
git+noreply at mindrot.org
git+noreply at mindrot.org
Sat May 10 22:19:36 AEST 2025
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit 82f1f52c5582f005761e4e200c279ddd9c6781e4
Author: Darren Tucker <dtucker at dtucker.net>
AuthorDate: Sat May 10 06:37:24 2025 +1000
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.
---
.github/workflows/c-cpp.yml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml
index 424c193fb..b5b6de7fa 100644
--- a/.github/workflows/c-cpp.yml
+++ b/.github/workflows/c-cpp.yml
@@ -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
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list