generated from okp4/template-oss
-
Notifications
You must be signed in to change notification settings - Fork 127
52 lines (43 loc) · 1.18 KB
/
test-e2e.yml
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
name: Test E2E
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: e2e-test-${{ github.ref }}
cancel-in-progress: true
jobs:
e2e-test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Go environment
uses: actions/[email protected]
with:
go-version: "1.20"
- name: Setup Test infra
id: starship-action
uses: cosmology-tech/[email protected]
with:
values: starship/configs/ci.yaml
port-forward: true
version: 0.1.38
- name: Run Tests
run: |
cd starship/
go mod tidy
make test
# todo(@anmol1696): change this to be post step of the action
- name: Clean cluster
if: always()
run: |
helm delete $DEVNET_NAME --debug --namespace $DEVNET_NAMESPACE --wait || true
kubectl delete namespace $DEVNET_NAMESPACE --wait=true || true
env:
DEVNET_NAME: ${{ steps.starship-action.outputs.name }}
DEVNET_NAMESPACE: ${{ steps.starship-action.outputs.namespace }}