chore(deps): update oskarstark/php-cs-fixer-ga:latest docker digest to 9702a9f #1898
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PHP Conformance CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
# Declare default permissions as read only. | |
permissions: read-all | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: [ '7.4','8.0','8.1','8.2' ] | |
name: PHP ${{ matrix.php-version }} Conformance Test | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
egress-policy: block | |
allowed-endpoints: > | |
api.github.com:443 | |
github.com:443 | |
objects.githubusercontent.com:443 | |
packagist.org:443 | |
proxy.golang.org:443 | |
repo.packagist.org:443 | |
storage.googleapis.com:443 | |
- name: Checkout code | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Setup PHP ${{ matrix.php-version }} | |
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
- name: Install Dependencies | |
uses: nick-invision/retry@39da88d5f7d15a96aed861dbabbe8b7443e3182a # v1.0.4 | |
with: | |
timeout_minutes: 10 | |
max_attempts: 3 | |
command: composer install | |
- name: Setup Go | |
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
with: | |
go-version: '1.20' | |
- name: Run HTTP conformance tests | |
uses: GoogleCloudPlatform/functions-framework-conformance/action@72a4f36b10f1c6435ab1a86a9ea24bda464cc262 # v1.8.6 | |
env: | |
FUNCTION_TARGET: 'httpFunc' | |
FUNCTION_SIGNATURE_TYPE: 'http' | |
FUNCTION_SOURCE: ${{ github.workspace }}/tests/conformance/index.php | |
with: | |
functionType: 'http' | |
useBuildpacks: false | |
cmd: "'php -S localhost:8080 router.php'" | |
- name: Run Declarative HTTP conformance tests | |
uses: GoogleCloudPlatform/functions-framework-conformance/action@72a4f36b10f1c6435ab1a86a9ea24bda464cc262 # v1.8.6 | |
env: | |
FUNCTION_TARGET: 'declarativeHttpFunc' | |
FUNCTION_SOURCE: ${{ github.workspace }}/tests/conformance/index.php | |
with: | |
functionType: 'http' | |
useBuildpacks: false | |
cmd: "'php -S localhost:8080 router.php'" | |
- name: Run Declarative Typed conformance tests | |
uses: GoogleCloudPlatform/functions-framework-conformance/action@72a4f36b10f1c6435ab1a86a9ea24bda464cc262 # v1.8.6 | |
env: | |
FUNCTION_TARGET: 'declarativeTypedFunc' | |
FUNCTION_SOURCE: ${{ github.workspace }}/tests/conformance/index.php | |
with: | |
functionType: 'http' | |
declarativeType: 'typed' | |
useBuildpacks: false | |
cmd: "'php -S localhost:8080 router.php'" | |
- name: Run CloudEvent conformance tests | |
uses: GoogleCloudPlatform/functions-framework-conformance/action@72a4f36b10f1c6435ab1a86a9ea24bda464cc262 # v1.8.6 | |
env: | |
FUNCTION_TARGET: 'cloudEventFunc' | |
FUNCTION_SIGNATURE_TYPE: 'cloudevent' | |
FUNCTION_SOURCE: ${{ github.workspace }}/tests/conformance/index.php | |
with: | |
functionType: 'cloudevent' | |
useBuildpacks: false | |
validateMapping: true | |
cmd: "'php -S localhost:8080 router.php'" | |
- name: Run Declarative CloudEvent conformance tests | |
uses: GoogleCloudPlatform/functions-framework-conformance/action@72a4f36b10f1c6435ab1a86a9ea24bda464cc262 # v1.8.6 | |
env: | |
FUNCTION_TARGET: 'declarativeCloudEventFunc' | |
FUNCTION_SOURCE: ${{ github.workspace }}/tests/conformance/index.php | |
with: | |
functionType: 'cloudevent' | |
useBuildpacks: false | |
validateMapping: true | |
cmd: "'php -S localhost:8080 router.php'" |