Skip to content

Configuring Test Matrix

Endi S. Dewata edited this page Jul 28, 2021 · 3 revisions

Overview

By default the CI will test against the latest Fedora version and its previous version. Sometimes it’s necessary to test against specific versions. This can be done by configuring a test matrix in a GitHub secret. To reset the test matrix back to the default simply remove the secret.

Configuring Test Matrix

Define a test matrix in JSON format. For example, to test against Fedora 34 and 35:

{
    "os": ["34", "35"]
}

Convert the value into a single line, escape the double quotes, then base64-encode the value:

$ echo "{\"os\": [\"34\", \"35\"]}" | base64
eyJvcyI6IFsiMzQiLCAiMzUiXX0K

To create the secret:

  • Go to SettingsSecrets.

  • Click New repository secret.

  • Enter BASE64_MATRIX as the secret name.

  • Enter the base64-encoded value as the secret value.

  • Click Add secret

Resetting Test Matrix

To remove the secret:

  • Go to SettingsSecrets.

  • Click Remove next to BASE64_MATRIX.

  • Click Yes, remove this secret.