-
Notifications
You must be signed in to change notification settings - Fork 6
82 lines (68 loc) · 2.13 KB
/
acceptance-test.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: CI
on:
push:
branches:
- "acceptance-test-*"
pull_request:
env:
GO_VERSION: 1.19
GOFLAGS: -mod=readonly
jobs:
build:
name: Acceptance test
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
# - name: Setup upterm session
# uses: lhotari/action-upterm@v1
# with:
# ## limits ssh access and adds the ssh public key for the user which triggered the workflow
# limit-access-to-actor: true
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Cache Go module dependencies
id: cache-go-module-dependencies
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: go-mod-cache-${{ runner.os }}-${{ env.GO_VERSION }}-${{ hashFiles('go.sum') }}
restore-keys: |
go-mod-cache-${{ runner.os }}-${{ env.GO_VERSION }}
go-mod-cache-${{ runner.os }}
go-mod-cache
- name: Set Git refname
id: set-git-refname
run: echo "git_refname=$(echo "${{ github.ref }}" | sed -r 's@refs/(heads|pull|tags)/@@g')" >> $GITHUB_OUTPUT
- name: Deploy to kind cluster (istio-operator)
run: |
test/deploy-kind.sh
env:
DOCKER_BUILDKIT: "1"
- name: Run simple go http client (istio-operator)
working-directory: examples/http
run: |
make run-client
env:
CLIENT_REQUEST_URL: "http://echo.testing:80"
- name: Kind cluster cleanup
run: |
kind delete cluster --name nasp-test-cluster
- name: Deploy to kind cluster (istioctl)
run: |
test/deploy-kind.sh
env:
DOCKER_BUILDKIT: "1"
ISTIO_INSTALLER: istioctl
- name: Run simple go http client (istioctl)
working-directory: examples/http
run: |
make run-client
env:
CLIENT_REQUEST_URL: "http://echo.testing:80"
- name: Run simple go tcp client (istioctl)
working-directory: examples/tcp
run: |
make run-client