-
Notifications
You must be signed in to change notification settings - Fork 3
63 lines (60 loc) · 2.14 KB
/
Copy pathe2e.yml
File metadata and controls
63 lines (60 loc) · 2.14 KB
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
name: E2E Tests on KinD
on:
pull_request:
branches: ["main"]
push:
branches: ["main"]
workflow_dispatch:
jobs:
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set kernel settings
run: |
docker run --rm \
--privileged \
--pid host \
-v /lib/modules:/lib/modules:ro \
alpine sh -c "sysctl -w fs.inotify.max_user_instances=512 && modprobe nfs && modprobe nfsd"
- name: Install dependencies
run: |
mkdir -p $HOME/.local/bin && echo "$HOME/.local/bin" >> "$GITHUB_PATH"
curl -L "https://packages.cloudfoundry.org/stable?release=linux64-binary&version=${CF_CLI_VERSION}&source=github" | tar -zx
mv cf8 $HOME/.local/bin/cf
env:
CF_CLI_VERSION: "8.18.3"
- name: setup Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: false
- name: checkout kind-deployment
uses: actions/checkout@v6
with:
repository: "cloudfoundry/kind-deployment"
path: "kind"
- name: Run make up
run: |
cd kind && make up
- name: Login
run: cd kind && make login
- name: Init
run: cd kind && make bootstrap-complete
- name: Build cnbapplifecycle.tgz
run: make copy-binaries package
- name: Load updated cnbapplifecycle.tgz into kind
run: |
kubectl cp bin/cnb_app_lifecycle.tgz \
cf-system/$(kubectl get pod -n cf-system -l app.kubernetes.io/name=fileserver \
-o jsonpath='{.items[0].metadata.name}'):fileserver/v1/static/cnb_app_lifecycle/cnb_app_lifecycle.tgz
- name: Run E2E tests for java
run: |
cf push hello-java -f examples/hello-java/manifest.yaml
curl -s -f hello-java.apps.127-0-0-1.nip.io | grep -F "Hello World"
cf delete hello-java -f -r
- name: Run E2E tests for nodejs
run: |
cf push hello-js -f examples/hello-js/manifest.yaml
curl -s -f hello-js.apps.127-0-0-1.nip.io | grep -F "Hello World"
cf delete hello-js -f -r