-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (36 loc) · 1.03 KB
/
ci.yaml
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
name: Continous Integration
on:
push:
branches:
- master
- '[0-9]+\-[0-9]+\-x'
pull_request:
jobs:
integration:
name: Integration tests
runs-on: ubuntu-20.04
strategy:
matrix:
php-version: [ 7.4 ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP Environment
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Composer install
run: composer install
- name: Check PHP CS
run: ./vendor/bin/php-cs-fixer fix --config .php-cs-fixer.php --dry-run --using-cache no --show-progress dots -v
- name: Test
run: ./vendor/bin/phpunit --coverage-cobertura=coverage.xml
- name: Code Coverage
uses: irongut/[email protected]
with:
filename: coverage.xml
badge: true
format: 'markdown'
output: 'both'
- name: Write to Job Summary
run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY