Skip to content

Commit

Permalink
chore(master): release 1.6.0 (GoogleCloudPlatform#131)
Browse files Browse the repository at this point in the history
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
  • Loading branch information
release-please[bot] authored and anniefu committed Aug 11, 2022
1 parent 5c7091f commit 29a4844
Show file tree
Hide file tree
Showing 2 changed files with 117 additions and 69 deletions.
171 changes: 102 additions & 69 deletions .github/workflows/conformance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,31 @@ on:
- master
workflow_dispatch:
jobs:
# Download the Go conformance client binary in it's own Github runner so that the version of Go used doesn't matter
download-conformance-client:
runs-on: ubuntu-latest
outputs:
cache-key: ${{ steps.resolve-latest-client.outputs.version }}
steps:
- name: Resolve latest client version
id: resolve-latest-client
uses: anniefu/functions-framework-conformance/.github/actions/client/resolve-latest@master
# Check if it's already in the cache
- name: Cache client
id: check-for-cached-client
uses: actions/cache@v3
with:
path: ~/go/bin/client
key: ${{ steps.resolve-latest-client.outputs.version }}
- name: Install and cache client
if: ${{ steps.check-for-cached-client.outputs.cache-hit != 'true' }}
uses: anniefu/functions-framework-conformance/.github/actions/client/install@master
with:
client-path: ~/client
client-key: ${{ steps.resolve-latest-client.outputs.version }}
build:
needs:
- download-conformance-client
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -22,73 +46,82 @@ jobs:
go-version: '${{ matrix.go-version }}'
- name: Pre-fetch go dependencies and build
run: 'go build ./...'
- name: Pre-install conformance test client
run: 'go get github.com/GoogleCloudPlatform/functions-framework-conformance/client@v1.3.1 && go install github.com/GoogleCloudPlatform/functions-framework-conformance/client'
- name: Run HTTP conformance tests
uses: GoogleCloudPlatform/functions-framework-conformance/action@v1.3.1
with:
version: 'v1.3.1'
functionType: 'http'
useBuildpacks: false
cmd: "'go run testdata/conformance/cmd/http/main.go'"
startDelay: 5
- name: Run event conformance tests
uses: GoogleCloudPlatform/functions-framework-conformance/action@v1.3.1
- name: Fetch conformance client
uses: actions/cache@v3
with:
version: 'v1.3.1'
functionType: 'legacyevent'
validateMapping: true
useBuildpacks: false
cmd: "'go run testdata/conformance/cmd/legacyevent/main.go'"
startDelay: 5
- name: Run CloudEvent conformance tests
uses: GoogleCloudPlatform/functions-framework-conformance/action@v1.3.1
with:
version: 'v1.3.1'
functionType: 'cloudevent'
validateMapping: true
useBuildpacks: false
cmd: "'go run testdata/conformance/cmd/cloudevent/main.go'"
startDelay: 5
- name: Run HTTP conformance tests using declarative API
uses: GoogleCloudPlatform/functions-framework-conformance/action@v1.3.1
env:
FUNCTION_TARGET: 'declarativeHTTP'
with:
version: 'v1.3.1'
functionType: 'http'
useBuildpacks: false
cmd: "'go run testdata/conformance/cmd/declarative/main.go'"
startDelay: 5
- name: Run CloudEvent conformance tests using declarative API
uses: GoogleCloudPlatform/functions-framework-conformance/action@v1.3.1
env:
FUNCTION_TARGET: 'declarativeCloudEvent'
with:
version: 'v1.3.1'
functionType: 'cloudevent'
useBuildpacks: false
cmd: "'go run testdata/conformance/cmd/declarative/main.go'"
startDelay: 5
- name: Run HTTP concurrency conformance tests
uses: GoogleCloudPlatform/functions-framework-conformance/action@v1.3.1
env:
FUNCTION_TARGET: 'concurrentHTTP'
with:
version: 'v1.3.1'
functionType: 'http'
validateConcurrency: true
useBuildpacks: false
cmd: "'go run testdata/conformance/cmd/declarative/main.go'"
startDelay: 5
- name: Run CloudEvent concurrency conformance tests
uses: GoogleCloudPlatform/functions-framework-conformance/action@v1.3.1
env:
FUNCTION_TARGET: 'concurrentCloudEvent'
with:
version: 'v1.3.1'
functionType: 'cloudevent'
validateConcurrency: true
useBuildpacks: false
cmd: "'go run testdata/conformance/cmd/declarative/main.go'"
startDelay: 5
path: ~/go/bin/client
key: ${{ needs.download-conformance-client.outputs.cache-key }}
- name: Run HTTP conformance tests
run: |
client \
-type=http \
-buildpacks=false \
-cmd="go run testdata/conformance/cmd/http/main.go"
# - name: Run HTTP conformance tests
# uses: GoogleCloudPlatform/functions-framework-conformance/action@v1.3.1
# with:
# version: 'v1.3.1'
# functionType: 'http'
# useBuildpacks: false
# cmd: "'go run testdata/conformance/cmd/http/main.go'"
# startDelay: 5
# - name: Run event conformance tests
# uses: GoogleCloudPlatform/functions-framework-conformance/action@v1.3.1
# with:
# version: 'v1.3.1'
# functionType: 'legacyevent'
# validateMapping: true
# useBuildpacks: false
# cmd: "'go run testdata/conformance/cmd/legacyevent/main.go'"
# startDelay: 5
# - name: Run CloudEvent conformance tests
# uses: GoogleCloudPlatform/functions-framework-conformance/action@v1.3.1
# with:
# version: 'v1.3.1'
# functionType: 'cloudevent'
# validateMapping: true
# useBuildpacks: false
# cmd: "'go run testdata/conformance/cmd/cloudevent/main.go'"
# startDelay: 5
# - name: Run HTTP conformance tests using declarative API
# uses: GoogleCloudPlatform/functions-framework-conformance/action@v1.3.1
# env:
# FUNCTION_TARGET: 'declarativeHTTP'
# with:
# version: 'v1.3.1'
# functionType: 'http'
# useBuildpacks: false
# cmd: "'go run testdata/conformance/cmd/declarative/main.go'"
# startDelay: 5
# - name: Run CloudEvent conformance tests using declarative API
# uses: GoogleCloudPlatform/functions-framework-conformance/action@v1.3.1
# env:
# FUNCTION_TARGET: 'declarativeCloudEvent'
# with:
# version: 'v1.3.1'
# functionType: 'cloudevent'
# useBuildpacks: false
# cmd: "'go run testdata/conformance/cmd/declarative/main.go'"
# startDelay: 5
# - name: Run HTTP concurrency conformance tests
# uses: GoogleCloudPlatform/functions-framework-conformance/action@v1.3.1
# env:
# FUNCTION_TARGET: 'concurrentHTTP'
# with:
# version: 'v1.3.1'
# functionType: 'http'
# validateConcurrency: true
# useBuildpacks: false
# cmd: "'go run testdata/conformance/cmd/declarative/main.go'"
# startDelay: 5
# - name: Run CloudEvent concurrency conformance tests
# uses: GoogleCloudPlatform/functions-framework-conformance/action@v1.3.1
# env:
# FUNCTION_TARGET: 'concurrentCloudEvent'
# with:
# version: 'v1.3.1'
# functionType: 'cloudevent'
# validateConcurrency: true
# useBuildpacks: false
# cmd: "'go run testdata/conformance/cmd/declarative/main.go'"
# startDelay: 5
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## [1.6.0](https://github.com/GoogleCloudPlatform/functions-framework-go/compare/v1.5.3...v1.6.0) (2022-08-05)


### Features

* Add release candidate validation ([#124](https://github.com/GoogleCloudPlatform/functions-framework-go/issues/124)) ([4f5e934](https://github.com/GoogleCloudPlatform/functions-framework-go/commit/4f5e9341b8a7ac43d7f18ad499ad326ff585ff06))


### Bug Fixes

* adding a check for null http handler before starting the server ([#138](https://github.com/GoogleCloudPlatform/functions-framework-go/issues/138)) ([5d5bf7a](https://github.com/GoogleCloudPlatform/functions-framework-go/commit/5d5bf7a741528b4a82cbe9c67f48425fe19be444))
* Allow registering multiple functions with one server for local testing. ([#143](https://github.com/GoogleCloudPlatform/functions-framework-go/issues/143)) ([3cab285](https://github.com/GoogleCloudPlatform/functions-framework-go/commit/3cab285f11b6cafced19dd42756dca821a89dda7))
* log CloudEvent function errors to stderr ([#132](https://github.com/GoogleCloudPlatform/functions-framework-go/issues/132)) ([ac973b4](https://github.com/GoogleCloudPlatform/functions-framework-go/commit/ac973b4343f4814abe811d65c0c08e4c0aa4c59e))
* remove obsolete blank prints ([#144](https://github.com/GoogleCloudPlatform/functions-framework-go/issues/144)) ([5c7091f](https://github.com/GoogleCloudPlatform/functions-framework-go/commit/5c7091ff59ebcfd724cdd3c90f4b97c318696040))

### [1.5.3](https://github.com/GoogleCloudPlatform/functions-framework-go/compare/v1.5.2...v1.5.3) (2022-02-10)


Expand Down

0 comments on commit 29a4844

Please sign in to comment.