This action runs community operator tests.
- Supported tests (kiwi,lemon,orange)
- Own community-operators fork and branch supported
- Run test from own repository. Doesn't have to be community-operators. More info in op-action-examples
- uses: operator-framework/community-operators@v1
with:
# Test type (kiwi,lemon or orange)
test-type: 'kiwi'
# Operator stream name (community-operators or upstream-community-operators)
stream: 'community-operators'
# Operator name (exmaple 'aqua')
name: ''
# Operator version (exmaple '5.3.0')
version: ''
# Community operators repo
# Default: 'https://github.com/operator-framework/community-operators.git'
repo: ''
# Community operators branch
# Default: 'master'
branch: ''
# Repo directory when if not community-operators
# Default: 'community-operators'
repo-dir: ''
# Space separated list of labels in PR
# Default: ''
pr-labels: ''
# Path to operator version content (for example local/path/to/operator/version).
# Default: ''
operator-version-path: ''
# Path to package file (for example local/path/to/my-operator.package.yaml).
# Default: ''
package-path: ''
# Path to ci.yaml file (for example local/path/to/ci.yaml).
# Default: ''
ci-path: ''
- uses: operator-framework/community-operators@v1
with:
test-type: 'kiwi'
stream: 'upstream-community-operators'
name: 'aqua'
version: '5.3.0'
- uses: operator-framework/community-operators@v1
with:
test-type: 'kiwi'
stream: 'upstream-community-operators'
name: 'aqua'
version: '5.3.0'
- uses: operator-framework/community-operators@v1
with:
test-type: 'lemon'
stream: 'upstream-community-operators'
name: 'aqua'
version: '5.3.0'
- uses: operator-framework/community-operators@v1
with:
test-type: 'oragne_v4.6'
stream: 'community-operators'
name: 'aqua'
version: '5.3.0'
Test single version of operator from custom project. Follwoing will happen:
- Action will clone
https://github.com/operator-framework/community-operators.git
in to master branch (controlled byrepo:
andbranch:
) - Enters directory
community-operators
(controlled byrepo-dir:
) - Removes directory
upstream-community-operators/aqua/5.3.0
- Creates directory
upstream-community-operators/aqua/5.3.0
- Copy content
my/op/manifest
toupstream-community-operators/aqua/5.3.0
(controlled byoperator-version-path:
) - Copy/overwrite
my/op/aqua-operator.package.yaml
toupstream-community-operators/aqua/
(controlled bypackage-path:
) - Copy/overwrite
my/op/ci.yaml
toupstream-community-operators/aqua/
(controlled byci-path:
) - Runs
kiwi
test (controlled bytest-type:
)
- uses: operator-framework/community-operators@v1
with:
test-type: 'kiwi'
stream: 'upstream-community-operators'
name: 'aqua'
version: '5.3.0'
repo: 'https://github.com/operator-framework/community-operators.git'
branch: 'master'
operator-version-path: my/op/manifest
package-path: my/op/aqua-operator.package.yaml
ci-path: my/op/ci.yaml
The scripts and documentation in this project are released under the MIT License