diff --git a/.github/workflows/conformance.yml b/.github/workflows/conformance.yml index a4fe0d09..d955186a 100644 --- a/.github/workflows/conformance.yml +++ b/.github/workflows/conformance.yml @@ -18,11 +18,6 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Setup Go - uses: actions/setup-go@v2 - with: - go-version: '1.15' - - name: Setup PHP ${{ matrix.php-version }} uses: shivammathur/setup-php@v2 with: @@ -35,25 +30,32 @@ jobs: 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/action@v0.3.12 + uses: GoogleCloudPlatform/functions-framework-conformance/action@v1.2.0 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/action@v0.3.12 + uses: GoogleCloudPlatform/functions-framework-conformance/action@v1.2.0 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'" + cmd: "'php -S localhost:8080 router.php'" \ No newline at end of file