|
| 1 | +--- |
| 2 | +name: Beaker Acceptance Tests |
| 3 | +run-name: |- |
| 4 | + Beaker acceptance tests of openvox for |
| 5 | + ${{ inputs.pre-release-build && 'pre-release' || 'release' }} |
| 6 | + packages of openvox-agent |
| 7 | + ${{ (inputs.pre-release-build && inputs.openvox-agent-version) || |
| 8 | + format(' collection: "{0}", version: "{1}" ', |
| 9 | + inputs.collection, |
| 10 | + ((inputs.openvox-agent-version == '') && 'latest') || |
| 11 | + inputs.openvox-agent-version) }} |
| 12 | + and openvox-server |
| 13 | + ${{ (inputs.pre-release-build && inputs.openvox-server-version) || |
| 14 | + format(' collection: "{0}", version: "{1}" ', |
| 15 | + inputs.collection, |
| 16 | + ((inputs.openvox-server-version == '') && 'latest') || |
| 17 | + inputs.openvox-server-version) }} |
| 18 | +
|
| 19 | +on: |
| 20 | + workflow_dispatch: |
| 21 | + inputs: |
| 22 | + ref: |
| 23 | + description: |- |
| 24 | + (Ref) The git ref of openvox to run the Beaker test suite |
| 25 | + from. |
| 26 | +
|
| 27 | + If testing something from openvox8, this should be a ref off |
| 28 | + of main. |
| 29 | +
|
| 30 | + If testing something from openvox7, this should be a ref off |
| 31 | + of the 7.x branch. |
| 32 | + required: true |
| 33 | + type: string |
| 34 | + default: main |
| 35 | + pre-release-build: |
| 36 | + description: |- |
| 37 | + (Pre-release Build) Whether to test unreleased version |
| 38 | + packages from the artifacts server, or released packages |
| 39 | + from the given collection. |
| 40 | +
|
| 41 | + If this is true, versions must be valid version numbers, |
| 42 | + not latest, and collection is ignored. The workflow will |
| 43 | + download and install the matching openvox package files from |
| 44 | + the artifacts-url server. |
| 45 | +
|
| 46 | + If this is false, version and collection must match, and the |
| 47 | + workflow will install the given openvox collection package |
| 48 | + and then let the system package manager install the latest |
| 49 | + or version packages from the collection repository. |
| 50 | + default: true |
| 51 | + type: boolean |
| 52 | + openvox-agent-version: |
| 53 | + description: |- |
| 54 | + (OpenVox Agent Version) The openvox-agent package version to |
| 55 | + test. (required if Pre-release Build is true) |
| 56 | + type: string |
| 57 | + openvox-server-version: |
| 58 | + description: |- |
| 59 | + (OpenVox Server Version) The openvox-server package version |
| 60 | + to test. (required if Pre-release Build is true) |
| 61 | + type: string |
| 62 | + collection: |
| 63 | + description: |- |
| 64 | + (Collection) OpenVox collection to use. (ignored if |
| 65 | + Pre-release Build is true) |
| 66 | +
|
| 67 | + If testing something from main, this should be openvox8. |
| 68 | + If testing something from 7.x, this should be openvox7. |
| 69 | + default: 'openvox8' |
| 70 | + type: string |
| 71 | + artifacts-url: |
| 72 | + description: |- |
| 73 | + URL to the artifacts server. (used if Pre-release Build is |
| 74 | + true) |
| 75 | + default: 'https://s3.osuosl.org/openvox-artifacts' |
| 76 | + type: string |
| 77 | + |
| 78 | +permissions: |
| 79 | + contents: read |
| 80 | + |
| 81 | +jobs: |
| 82 | + acceptance: |
| 83 | + uses: 'OpenVoxProject/shared-actions/.github/workflows/beaker_acceptance.yml@main' |
| 84 | + with: |
| 85 | + ref: ${{ inputs.ref }} |
| 86 | + project-name: openvox |
| 87 | + install-openvox: true |
| 88 | + openvox-collection: ${{ inputs.collection }} |
| 89 | + openvox-agent-version: ${{ inputs.openvox-agent-version }} |
| 90 | + openvox-agent-pre-release-build: ${{ inputs.pre-release-build }} |
| 91 | + install-openvox-server: true |
| 92 | + openvox-server-version: ${{ inputs.openvox-server-version }} |
| 93 | + openvox-server-pre-release-build: ${{ inputs.pre-release-build }} |
| 94 | + install-openvoxdb: false |
| 95 | + install-openvoxdb-termini: false |
| 96 | + artifacts-url: ${{ inputs.artifacts-url }} |
| 97 | + acceptance-working-dir: 'acceptance' |
| 98 | + acceptance-pre-suite: |- |
| 99 | + [ |
| 100 | + "pre-suite" |
| 101 | + ] |
| 102 | + acceptance-tests: |- |
| 103 | + [ |
| 104 | + "tests" |
| 105 | + ] |
| 106 | + beaker-options: |- |
| 107 | + { |
| 108 | + "helper": "lib/helper.rb", |
| 109 | + "options_file": "config/aio/options.rb" |
| 110 | + } |
| 111 | + vms: |- |
| 112 | + [ |
| 113 | + { |
| 114 | + "role": "primary", |
| 115 | + "count": 1, |
| 116 | + "cpus": 4, |
| 117 | + "mem_mb": 8192, |
| 118 | + "cpu_mode": "host-model" |
| 119 | + } |
| 120 | + ] |
0 commit comments