-
Notifications
You must be signed in to change notification settings - Fork 20
69 lines (59 loc) · 1.6 KB
/
main.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Main CI
on:
pull_request:
branches: [ main ]
paths:
- '.github/workflows/**'
- 'context/**'
- 'plugin/**'
- 'framework/**'
- 'functions/**'
- 'internal/**'
- 'runtime/**'
- 'test/**'
- 'go.mod'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
e2e_test:
runs-on: ubuntu-latest
timeout-minutes: 30
name: E2E Tests
strategy:
matrix:
case:
- name: Bindings e2e test
e2e: "test/bindings/e2e.yaml"
- name: Pubsub e2e test
e2e: "test/pubsub/e2e.yaml"
- name: Sync HTTP e2e test
e2e: "test/sync-http/e2e.yaml"
- name: Sync Cloudevent e2e test
e2e: "test/sync-cloudevent/e2e.yaml"
- name: Declarative multiple functions with variables e2e test
e2e: "test/declarative/sync-http-variables/e2e.yaml"
steps:
- uses: actions/checkout@v2
- name: install yq
env:
VERSION: v4.22.1
BINARY: yq_linux_amd64
run: |
wget https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY}.tar.gz -O - |\
tar xz && mv ${BINARY} /usr/local/bin/yq
- uses: apache/skywalking-infra-e2e@main
with:
e2e-file: ${{matrix.case.e2e}}
- name: Cleanup
if: ${{ failure() }}
run: e2e cleanup -c ${{matrix.case.e2e}}