Skip to content

Update Emitter.php

Update Emitter.php #65

Workflow file for this run

name: ci
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
php: ['7.4', '8.1']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring
coverage: xdebug
- name: Start mountebank container with imposter
run: |
docker run -d --rm --mount type=bind,source=$(pwd)/tests/mountebank_mocks,destination=/imposters -p 2525:2525 -p 4545:4545 bbyars/mountebank:2.4.0 --configfile /imposters/imposter.json
while ! nc -z localhost 2525; do sleep 0.1; done
- name: Composer
run: |
composer self-update
composer install
- name: Test and send coverage
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
php vendor/bin/phpunit
php vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v