forked from operator-framework/community-operators
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (32 loc) · 1.17 KB
/
kiwi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: kiwi
env:
OP_TEST_DEBUG: 1
OP_TEST_CONTAINER_OPT: "-t"
OP_TEST_SCRIPT_URL: "https://raw.githubusercontent.com/operator-framework/operator-test-playbooks/master/upstream/test/test.sh"
on:
pull_request:
branches:
- master
jobs:
test:
name: "Full operator test"
runs-on: ubuntu-latest
steps:
# Checks out a copy of your repository on the ubuntu-latest machine
- name: Checkout code
uses: actions/checkout@v2
# - name: PR traffic light
# run: scripts/ci/PR-traffic-light
- id: files
uses: jitterbit/get-changed-files@v1
continue-on-error: true
- name: Operator test
env:
CHANGED_FILES: "${{ steps.files.outputs.all }}"
OP_TEST_LABELS: "${{ join(github.event.pull_request.labels.*.name, ' ') }}"
run: |
scripts/ci/PR-env
[ -f /tmp/vars-op-path ] && source /tmp/vars-op-path || { echo "Error getting opertator variables"; exit 1; }
echo "OP_TEST_LABELS='$OP_TEST_LABELS'"
echo scripts/ci/op-test kiwi $STREAM_NAME/$OP_NAME/$OP_VER
[[ $NO_OPERATOR -eq 1 ]] || scripts/ci/op-test kiwi $STREAM_NAME/$OP_NAME/$OP_VER