-
Notifications
You must be signed in to change notification settings - Fork 23
66 lines (56 loc) · 1.7 KB
/
cli-coexistence_tests.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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.21
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