Configuring Test Suites - dogtagpki/pki GitHub Wiki
The CI tests are organized as test suites (i.e. <name>-tests.yml, not <name>-test.yml) in the following folder:
Sometimes it is necessary to limit the test suites that will run in the CI in order to conserve time and resources.
The list of test suites can be specified in a GitHub Action variable TESTS.
The variable can be specified directly in GitHub project settings or using GitHub CLI.
On Fedora the CLI is available from the gh package.
The variable should contain a space-delimited names of the test suites (e.g. ca kra ocsp).
Test suites that are not listed in this variable will be canceled automatically.
However, the cancellation mechanism in GitHub is not 100% reliable.
Sometimes the test suite continues to run after being canceled, so it needs to be canceled manually.
If the variable is empty or not defined all test suites will run by default.
To display the list using GitHub CLI:
$ gh variable get TESTS -R <owner>/<project>
To configure the list using GitHub CLI:
$ gh variable set TESTS -b <test suites> -R <owner>/<project>
For example, to run CA, CA Clone, KRA, and KRA Clone test suites only:
$ gh variable set TESTS -b "ca ca-clone kra kra-clone" -R edewata/pki
To remove the list using GitHub CLI:
$ gh variable delete TESTS -R <owner>/<project>