Skip to content

chore: bump version numbers post v1.2.0 (#385) #117

chore: bump version numbers post v1.2.0 (#385)

chore: bump version numbers post v1.2.0 (#385) #117

Workflow file for this run

name: C++ Conformance CI
on:
push:
branches: [ main ]
pull_request:
env:
vcpkg_SHA: "dfcd4e4b30799c4ce02fe3939b62576fec444224"
jobs:
coverage:
name: coverage
runs-on: ubuntu-22.04
steps:
- name: install tools
run: sudo apt install ninja-build lcov
- uses: actions/checkout@v2
- name: clone-vcpkg
working-directory: "${{runner.temp}}"
run: >
mkdir -p vcpkg &&
curl -sSL "https://github.com/microsoft/vcpkg/archive/${{env.vcpkg_SHA}}.tar.gz" |
tar -C vcpkg --strip-components=1 -zxf -
- name: cache-vcpkg
id: cache-vcpkg
uses: actions/cache@v2
with:
# Preserve the vcpkg binary *and* the vcpkg binary cache in the build cache
path: |
~/.cache/vcpkg
~/.cache/bin
key: |
vcpkg-${{ env.vcpkg_SHA }}-coverage-${{ hashFiles('vcpkg.json') }}
restore-keys: |
vcpkg-${{ env.vcpkg_SHA }}-coverage-
- name: boostrap-vcpkg
run: ci/restore-vcpkg-from-cache.sh "${{runner.temp}}/vcpkg"
- name: configure
run: >
cmake -S . -B ${{runner.workspace}}/build -GNinja
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_CXX_FLAGS=--coverage
-DCMAKE_TOOLCHAIN_FILE="${{runner.temp}}/vcpkg/scripts/buildsystems/vcpkg.cmake"
- uses: actions/cache/save@v3
if: always()
with:
path: |
~/.cache/vcpkg
~/.cache/bin
key: vcpkg-${{ env.vcpkg_SHA }}-coverage-${{ hashFiles('vcpkg.json') }}
- name: build
run: cmake --build ${{runner.workspace}}/build
- name: test
working-directory: ${{runner.workspace}}/build
run: ctest --output-on-failure --timeout=60s
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '^1.16'
- name: Run Cloud Event conformance tests
uses: GoogleCloudPlatform/functions-framework-conformance/action@v1.8.3
with:
functionType: 'cloudevent'
useBuildpacks: false
validateMapping: true
cmd: '${{runner.workspace}}/build/google/cloud/functions/integration_tests/cloud_event_conformance'
- name: Run HTTP conformance tests
uses: GoogleCloudPlatform/functions-framework-conformance/action@v1.8.3
with:
functionType: 'http'
useBuildpacks: false
validateMapping: true
cmd: '${{runner.workspace}}/build/google/cloud/functions/integration_tests/http_conformance'
- name: coverage-upload
working-directory: ${{runner.workspace}}
run: >
/bin/bash <(curl -s https://codecov.io/bash) -X coveragepy -x /usr/bin/gcov