forked from GoogleCloudPlatform/functions-framework-java
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (53 loc) · 1.81 KB
/
conformance.yaml
File metadata and controls
60 lines (53 loc) · 1.81 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
name: Java Conformance CI
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [
11.x
# 12.x,
# 13.x
]
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.15'
- name: Build API with Maven
run: (cd functions-framework-api/ && mvn install)
- name: Build invoker with Maven
run: (cd invoker/ && mvn install)
- name: Run HTTP conformance tests
uses: GoogleCloudPlatform/functions-framework-conformance/action@v0.3.12
with:
functionType: 'http'
useBuildpacks: false
cmd: "'mvn -f invoker/conformance/pom.xml function:run -Drun.functionTarget=com.google.cloud.functions.conformance.HttpConformanceFunction'"
startDelay: 10
- name: Run background event conformance tests
uses: GoogleCloudPlatform/functions-framework-conformance/action@v0.3.12
with:
functionType: 'legacyevent'
useBuildpacks: false
validateMapping: false
cmd: "'mvn -f invoker/conformance/pom.xml function:run -Drun.functionTarget=com.google.cloud.functions.conformance.BackgroundEventConformanceFunction'"
startDelay: 10
- name: Run cloudevent conformance tests
uses: GoogleCloudPlatform/functions-framework-conformance/action@v0.3.12
with:
functionType: 'cloudevent'
useBuildpacks: false
validateMapping: true
cmd: "'mvn -f invoker/conformance/pom.xml function:run -Drun.functionTarget=com.google.cloud.functions.conformance.CloudEventsConformanceFunction'"
startDelay: 10