forked from GoogleCloudPlatform/functions-framework-php
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (56 loc) · 1.64 KB
/
conformance.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
name: PHP Conformance CI
on:
pull_request:
branches:
- master
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ '7.4','8.0' ]
name: PHP ${{ matrix.php-version }} Conformance Test
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Install Dependencies
uses: nick-invision/retry@v1
with:
timeout_minutes: 10
max_attempts: 3
command: composer install
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.15'
- name: Run HTTP conformance tests
uses: GoogleCloudPlatform/functions-framework-conformance/[email protected]
env:
FUNCTION_TARGET: 'httpFunc'
FUNCTION_SIGNATURE_TYPE: 'http'
FUNCTION_SOURCE: ${{ github.workspace }}/tests/conformance/index.php
with:
version: 'v1.0.0'
functionType: 'http'
useBuildpacks: false
cmd: "'php -S localhost:8080 router.php'"
- name: Run CloudEvent conformance tests
uses: GoogleCloudPlatform/functions-framework-conformance/[email protected]
env:
FUNCTION_TARGET: 'cloudEventFunc'
FUNCTION_SIGNATURE_TYPE: 'cloudevent'
FUNCTION_SOURCE: ${{ github.workspace }}/tests/conformance/index.php
with:
version: 'v1.0.0'
functionType: 'cloudevent'
useBuildpacks: false
validateMapping: true
cmd: "'php -S localhost:8080 router.php'"