-
Notifications
You must be signed in to change notification settings - Fork 26
70 lines (60 loc) · 1.9 KB
/
pr-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
67
68
69
70
name: PR tests
on:
pull_request:
branches:
- main
- release/*
types: [opened, reopened, synchronize, ready_for_review]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-pr-tests
cancel-in-progress: true
jobs:
pr-test:
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
config-file:
- "one-chain-custom-scripts.yaml"
- "one-chain.yaml"
- "one-custom-chain.yaml"
- "multi-validator.yaml"
- "simapp.yaml"
- "one-chain-starship-faucet.yaml"
- "multi-validator-starship-faucet.yaml"
- "one-chain-cometmock.yaml"
fail-fast: true
max-parallel: 3
env:
CONFIG_FILE: "tests/e2e/configs/${{ matrix.config-file }}"
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-go@v4
with:
go-version: "1.21"
check-latest: true
- name: Setup Test infra
id: starship-action
uses: cosmology-tech/[email protected]
with:
values: ${{ env.CONFIG_FILE }}
port-forward: true
version: 0.0.0
chart: ./charts/devnet
cli-version: f35dc85407b350077765a0b3c17a4c1632c7d53c
- name: Run tests
run: |
cd tests/e2e/ && go test -v ./...
env:
TEST_CONFIG_FILE: ${{ env.CONFIG_FILE }}
# todo: change this to be post step of the action
- name: Cleanup 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 }}