-
Notifications
You must be signed in to change notification settings - Fork 14
48 lines (46 loc) · 1.52 KB
/
operator_bundle_tests.yml
File metadata and controls
48 lines (46 loc) · 1.52 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
name: Tests Operator Bundle
on:
pull_request:
paths:
- api/**
- config/**
jobs:
operatorhub-test:
runs-on: ubuntu-latest
env:
OPP_CONTAINER_OPT: "-i"
steps:
- name: Set up Go env
uses: actions/setup-go@v4
with:
go-version: 1.19.2
- uses: actions/checkout@v3
with:
fetch-depth: 0
path: go/src/github.com/${{ env.REPOSITORY }}
- name: Set $GOPATH
run: |
echo "GOPATH=${{ github.workspace }}/go" >> $GITHUB_ENV
echo "${{ github.workspace }}/go/bin" >> $GITHUB_PATH
shell: bash
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install required packages
run: pip install ansible jmespath
- name: Tests bundle
run: |
git config --global user.name "GitHub Actions" && git config --global user.email "[email protected]"
cd go/src/github.com/${{ env.REPOSITORY }}
export IKE_CONTAINER_REPOSITORY=maistra-dev
podman login -u=${{ secrets.QUAY_ROBOT_NAME }} -p=${{ secrets.QUAY_ROBOT_AUTH }} quay.io
make container-image container-push bundle
make lint-prepare bundle-test
shell: bash
- name: Print test logs on failure
if: ${{ failure() }}
run: |
cat /tmp/test.out || true
echo -e "\n--------------------------------------------------------------------------\n"
cat /tmp/op-test/log.out || true
shell: bash