-
Notifications
You must be signed in to change notification settings - Fork 37
42 lines (35 loc) · 1.01 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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