Skip to content

Add temporal support and fallback to usual http runner if env is not RR #491

Add temporal support and fallback to usual http runner if env is not RR

Add temporal support and fallback to usual http runner if env is not RR #491

Workflow file for this run

on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
push:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
name: build
jobs:
phpunit:
name: PHP ${{ matrix.php }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest']
php: ['8.1', '8.2']
steps:
- name: Checkout.
uses: actions/checkout@v3
- name: Install PHP with extensions.
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
ini-values: memory_limit=-1
coverage: pcov
tools: composer:v2
extensions: grpc-1.56.0 sockets
- name: Install dependencies with composer.
run: composer update --no-interaction --no-progress --optimize-autoloader --ansi
- name: Get RoadRunner binary
run: |
vendor/bin/rr get-binary
cp ./rr /usr/local/bin/rr
- name: Start RoadRunner
run: rr -s -w=$(pwd) serve &
- name: Run tests with code coverage
run: vendor/bin/phpunit --coverage-clover=coverage.xml --colors=always --configuration phpunit.xml.dist
- name: Upload coverage to Codecov.
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml