-
Notifications
You must be signed in to change notification settings - Fork 137
Configuring Test Repository
By default the CI will perform the tests using @pki/master repository. Sometimes it’s necessary to perform the tests using a different repository (e.g. to test dependency changes).
Prior to PKI 11.4 the repository can be configured by creating a GitHub secret called BASE64_REPO
to store the base64-encoded value of the test repository name. To reset the test repository simply remove the secret.
In PKI 11.4 or later the repository can be configured by creating a GitHub variable called COPR_REPO
to store the repository name. To reset the test repository simply remove the variable.
For example, to test using edewata/pki repository prior to PKI 11.4, base-64 encode the repository name with the following command:
$ echo "edewata/pki" | base64 ZWRld2F0YS9wa2kK
Then create the secret:
-
Go to Settings → Secrets and variables → Actions → Secrets.
-
Click New repository secret.
-
Enter
BASE64_REPO
as the secret name. -
Enter the base64-encoded value as the secret value.
-
Click Add secret.
In PKI 11.4 or later create a variable:
-
Go to Settings → Secrets and variables → Actions → Variables.
-
Click New repository variable.
-
Enter
COPR_REPO
as the variable name. -
Enter
edewata/pki
as the variable value. -
Click Add variable.
Sometimes old versions of packages in COPR can get selected instead of the test packages, so it is a good idea to delete any non-relevant builds from your test repo before starting.
To reset the test repository prior to PKI 11.4, remove the secret:
-
Go to Settings → Secrets and variables → Actions → Secrets.
-
Click Remove next to
BASE64_REPO
. -
Click Yes, remove this secret.
To reset the test repository in PKI 11.4 or later, remove the variable:
-
Go to Settings → Secrets and variables → Actions → Variables.
-
Click Remove next to
COPR_REPO
. -
Click Yes, remove this variable.
Tip
|
To find a page in the Wiki, enter the keywords in search field, press Enter, then click Wikis. |