-
Notifications
You must be signed in to change notification settings - Fork 22
56 lines (49 loc) · 1.46 KB
/
cli_core_e2e_sample-plugin.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
name: Tanzu CLI Test Framework E2E Tests
on:
pull_request:
branches: [main, release-*]
push:
branches: [ main, test*, release-*]
jobs:
build:
name: Tanzu CLI Test Framework E2E Tests
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Check out code into the Go module directory
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: Run Sample-Plugin E2E Tests
run: |
cd ./test/sample-plugin && make e2e-tests-simple-plugin
- name: Tests Results Summary
if: always()
run: |
TEST_RESULTS_MD=$(./hack/scripts/process-ginkgo-test-results.sh ./test/sample-plugin/cmd/plugin/sample-plugin/test/e2e/testresults)
echo "$TEST_RESULTS_MD" >> $GITHUB_STEP_SUMMARY
if [[ $TEST_RESULTS_MD == *":x:"* ]]; then
exit 1
fi