Community operator action V1
This action runs community operator tests.
What's new
- 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
Usage
- 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: ''
Test 'kiwi' aqua operator version 5.3.0 for community-operators
- uses: operator-framework/community-operators@v1
with:
test-type: 'kiwi'
stream: 'upstream-community-operators'
name: 'aqua'
version: '5.3.0'
Test 'kiwi' aqua operator version 5.3.0 for upstream-community-operators
- uses: operator-framework/community-operators@v1
with:
test-type: 'kiwi'
stream: 'upstream-community-operators'
name: 'aqua'
version: '5.3.0'
Test 'lemon' aqua operator version 5.3.0 for upstream-community-operators
- uses: operator-framework/community-operators@v1
with:
test-type: 'lemon'
stream: 'upstream-community-operators'
name: 'aqua'
version: '5.3.0'
Test 'orange' (catalog v4.6) for aqua operator version 5.3.0 for community-operators
- uses: operator-framework/community-operators@v1
with:
test-type: 'oragne_v4.6'
stream: 'community-operators'
name: 'aqua'
version: '5.3.0'
Test 'kiwi' aqua operator version 5.3.0 for upstream-community-operators in the own project
Test a single version of an operator from a 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
License
The scripts and documentation in this project are released under the MIT License