Skip to content

Commit 73a76d0

Browse files
committed
(gh-29) Switch acceptance workflow to dispatch
Now that kvm_automation_tooling/action.yaml accepts parameters for openvox_version and can test pre-release builds from the artifacts.overlookinfratech.com server, switch to a workflow_dispatch. Until such a time as there is a build step that would build and push packages to an artifacts server, a pr or branch push event isn't meaningful to test against aside from validating the gha acceptance.yaml workflow itself, since we would just be validating an already released package unreleated to the code in the pr or, for most cases outside of a release tag, the branch.
1 parent a4f858b commit 73a76d0

File tree

1 file changed

+36
-4
lines changed

1 file changed

+36
-4
lines changed

.github/workflows/acceptance.yaml

+36-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,36 @@
11
name: Acceptance Tests
22

33
on:
4-
push:
5-
branches: [main]
6-
pull_request:
7-
branches: [main]
4+
workflow_dispatch:
5+
inputs:
6+
pre-release-build:
7+
description: |-
8+
(Pre-release Build) Whether to test unreleased version
9+
packages from the artifacts server, or released packages
10+
from the given collection.
11+
12+
If this is true, version must be a valid version, not
13+
latest, and collection is ignored. The workflow will
14+
download and install the matching openvox-agent package file
15+
from the artifacts-url server.
16+
17+
If this is false, version and collection must match, and the
18+
workflow will install the given openvox collection package
19+
and then let the system package manager install the latest
20+
or version package from the collection repository.
21+
default: true
22+
type: boolean
23+
version:
24+
description: '(Version) Package version to test. (required if Pre-release Build is true)'
25+
type: string
26+
collection:
27+
description: '(Collection) OpenVox collection to use. (ignored if Pre-release Build is true)'
28+
default: 'openvox8'
29+
type: string
30+
artifacts-url:
31+
description: 'URL to the artifacts server. (used if Pre-release Build is true)'
32+
default: 'https://s3.osuosl.org/openvox-artifacts'
33+
type: string
834

935
permissions:
1036
contents: read
@@ -21,6 +47,7 @@ jobs:
2147
os:
2248
- ubuntu
2349
os-version:
50+
- '18.04'
2451
- '20.04'
2552
- '22.04'
2653
- '24.04'
@@ -36,6 +63,11 @@ jobs:
3663
os-arch: x86_64
3764
host-root-access: true
3865
ruby-version: ${{ env.RUBY_VERSION }}
66+
install-openvox: true
67+
openvox-version: ${{ github.event.inputs.version }}
68+
openvox-collection: ${{ github.event.inputs.collection }}
69+
openvox-released: ${{ ! github.event.inputs.pre-release-build }}
70+
openvox-artifacts-url: ${{ github.event.inputs.artifacts-url }}
3971
vms: |-
4072
[
4173
{

0 commit comments

Comments
 (0)