use go1.18 in ci workflows #282
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: HAC on KIND cluster Test | |
# Run on each new PR and each new push to existing PR | |
on: [push, pull_request] | |
jobs: | |
run-hac-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: "1.17" | |
- name: Set environment variables | |
run: | | |
echo PATH=$PATH:$HOME/go/bin >> $GITHUB_ENV | |
echo OPERATOR_IMAGE=localhost:5000/noobaa/noobaa-operator:integration >> $GITHUB_ENV | |
- name: Deploy Dependencies | |
run: | | |
bash .travis/install-5nodes-kind-cluster.sh | |
go get -v github.com/onsi/ginkgo/ginkgo | |
ginkgo version | |
- name: Build NooBaa | |
run: | | |
make cli | |
make image | |
docker tag noobaa/noobaa-operator:$(go run cmd/version/main.go) $OPERATOR_IMAGE | |
docker push $OPERATOR_IMAGE | |
- name: Install NooBaa | |
run: ./build/_output/bin/noobaa-operator-local --mini --operator-image=$OPERATOR_IMAGE install | |
- name: Run HAC test | |
run: make test-hac |