-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (27 loc) · 863 Bytes
/
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
name: CI
on:
push:
branches: [ master ]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
coverage: pcov
- name: Install dependencies
run: composer update --prefer-dist --no-progress --no-suggest --prefer-stable
- name: PHPUnit with coverage
run: vendor/bin/phpunit --coverage-clover=build/logs/clover.xml tests
- name: Report coverage
run: vendor/bin/php-coveralls
env:
COVERALLS_RUN_LOCALLY: yes
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
- name: Infection mutations
run: vendor/bin/infection --show-mutations
env:
INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }}