-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (35 loc) · 1.09 KB
/
master.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: Merge Master
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.1']
name: Upload coverage report
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl, sqlite3, xml, simplexml, mysqli
tools: composer:v2
coverage: xdebug
- name: Composer Check
run: composer validate
- name: Install
run: |
composer install --prefer-dist --no-interaction --no-progress
cp config/.env.example config/.env
cp config/app_local.example.php config/app_local.php
- name: Coverage Report
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require php-coveralls/php-coveralls
export CODECOVERAGE=1 && vendor/bin/phpunit --coverage-clover=clover.xml
php-coveralls --coverage_clover=clover.xml -v