Skip to content

Update tanzu plugin runtime to v1.0.0 (#464) (#465) #65

Update tanzu plugin runtime to v1.0.0 (#464) (#465)

Update tanzu plugin runtime to v1.0.0 (#464) (#465) #65

name: Tanzu CLI Coexistence Tests
on:
pull_request:
branches: [main, release-*]
push:
branches: [main, release-*]
jobs:
build-and-run:
name: Tanzu CLI Coexistence Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: 1.19
id: go
- name: go cache
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Setup dependencies
run: |
make tools
echo "${PWD}/hack/tools/bin" >> $GITHUB_PATH
echo "${PWD}/bin" >> $GITHUB_PATH
- name: Build CLI Core
run: |
make build
- name: Start local OCI registry
run: |
make start-test-central-repo
- name: Build Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: false
tags: cli-coexistence:latest
build-args: |
TANZU_CLI_COEXISTENCE_LEGACY_TANZU_CLI_DIR=/app/legacy-tanzu-cli
TANZU_CLI_COEXISTENCE_LEGACY_TANZU_CLI_VERSION=v0.28.1
TANZU_CLI_COEXISTENCE_NEW_TANZU_CLI_DIR=/app/tanzu-cli
- name: Run Docker image
run: make cli-coexistence-tests
- name: Tests Results Summary
if: always()
run: |
TEST_RESULTS_MD=$(./hack/scripts/process-ginkgo-test-results.sh test/e2e/coexistence)
echo "$TEST_RESULTS_MD" >> $GITHUB_STEP_SUMMARY