-
Notifications
You must be signed in to change notification settings - Fork 11
86 lines (81 loc) · 2.51 KB
/
e2e-test-wasm-workflow-call.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
83
84
85
86
on:
workflow_call:
inputs:
rollapp_wasm_ci:
description: "CI run on Rollapp-Wasm Repo"
required: false
type: string
default: "latest"
dymension_ci:
description: "CI run on Dymension Repo"
required: false
type: string
default: "latest"
relayer_ci:
description: "CI run on Relayer Repo"
required: false
type: string
default: "main-dym"
test:
description: 'test name to run as standalone'
required: false
type: string
default: ''
test-exclusions:
description: 'Comma separated list of tests to skip'
required: false
type: string
default: '' # empty string means don't skip any test.
jobs:
build-wasm-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
with:
repository: dymensionxyz/e2e-tests
ref: main
- uses: actions/setup-go@v5
with:
go-version: '1.21'
- id: set-matrix
run: |
output=$(go run build_tests_matrix/main.go)
echo "matrix=$output" >> $GITHUB_OUTPUT
env:
TEST_EXCLUSIONS: '${{ inputs.test-exclusions }}'
TEST_NAME: '${{ inputs.test }}'
ROLLAPP_TYPE: "Wasm"
# e2e-tests-by runs the actual go test command to trigger the test.
rollapp-wasm:
needs:
- build-wasm-matrix
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.build-wasm-matrix.outputs.matrix) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: dymensionxyz/e2e-tests
ref: main
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: "1.21.4"
- name: Download Tarball Artifact
uses: actions/download-artifact@v4
with:
name: e2e
path: /tmp
- name: Load Docker Image
run: |
docker image load -i /tmp/e2e.tar
docker image ls -a
- name: Rollapp-Wasm E2E Tests
run: sudo -E make e2e-test test=${{ matrix.test }}
env:
ROLLAPP_WASM_CI: ${{ inputs.rollapp_wasm_ci }}
DYMENSION_CI: ${{ inputs.dymension_ci }}
RELAYER_CI: ${{ inputs.relayer_ci }}