File tree Expand file tree Collapse file tree 4 files changed +20
-10
lines changed Expand file tree Collapse file tree 4 files changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ sudo apt-get -y install curl wget jq
2222mkdir -p " $HOME /.local/bin"
2323export PATH=" $HOME /.local/bin:$PATH "
2424
25- # add ops bin (~/.ops/<os>-<arch>/bin). os is uname -s lowercase, map common arch names
2625os=" $( uname -s | tr ' [:upper:]' ' [:lower:]' ) "
2726arch=" $( uname -m) "
2827case " $arch " in
@@ -39,8 +38,15 @@ URL="https://raw.githubusercontent.com/apache/openserverless-cli/refs/tags/v$VER
3938curl -sL $URL | VERSION=" $VER " bash ; \
4039echo -e ' #!/bin/bash\nops -wsk "$@"' > $HOME /.local/bin/wsk ; chmod +x $HOME /.local/bin/wsk ; \
4140curl -sL https://taskfile.dev/install.sh | sh -s -- -d -b $HOME /.local/bin; \
42- task --version && ops -t
41+ task --version; \
42+ echo " Installing ops prereq from $HOME " && ops -t
43+
44+ # install prerequisites to run operator tests
45+ cd $GITHUB_WORKSPACE
46+ echo " Installing operator prereq from $GITHUB_WORKSPACE " && ops -t
4347
4448# Persist ops path for GitHub Actions steps
4549echo " $RESOLVED_OPS_BIN " >> " $GITHUB_PATH "
4650echo " $HOME /.local/bin" >> " $GITHUB_PATH "
51+
52+
Original file line number Diff line number Diff line change 2626jobs :
2727 check :
2828 name : Check OpenServerless Operator
29+ # runs-on: [ self-hosted, Linux, X64 ]
2930 runs-on : ubuntu-22.04
3031 steps :
3132 - name : Checkout
5455 run : bash .github/cisetup.sh
5556 - name : Kind
5657 run : |
57- cd $HOME && \
58- ops setup docker create &&
59- kind export kubeconfig --name nuvolaris
58+ cd $HOME && ops setup docker create && \
59+ kind export kubeconfig --name nuvolaris
6060 - name : Install
6161 run : task setup
6262 - name : BuildAndLoad
7474 run : task utest
7575 continue-on-error : false
7676 - name : Integration Test
77- run : task itest
77+ run : ops -t && task itest
7878 continue-on-error : false
79+ - name : Cleanup cluster
80+ if : always()
81+ run : |
82+ kind delete cluster --name nuvolaris
Original file line number Diff line number Diff line change 2727jobs :
2828 image :
2929 name : Build OpenServerless Operator Image
30- # runs-on: ubuntu-22.04
31- runs-on : [ self-hosted, Linux, X64 ]
30+ runs-on : ubuntu-22.04
31+ # runs-on: [ self-hosted, Linux, X64 ]
3232 steps :
3333 - name : Remove unnecessary files
3434 run : |
9292 - name : Set up Docker Buildx
9393 uses : docker/setup-buildx-action@v3
9494 - name : Image
95- run : task buildx-and-push TAG="$IMG_TAG"
95+ run : task buildx-and-push TAG="$IMG_TAG"
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ version: '3'
1919
2020vars :
2121 NAME : " nuvolaris"
22- KUBEFILE : " {{.OPS_TMP}}/kind-dev .kubeconfig"
22+ KUBEFILE : " {{.OPS_TMP}}/kind.kubeconfig"
2323 DRY : " "
2424
2525env :
You can’t perform that action at this time.
0 commit comments