File tree Expand file tree Collapse file tree 4 files changed +48
-26
lines changed Expand file tree Collapse file tree 4 files changed +48
-26
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ build-test :
7+ runs-on : ubuntu-latest
8+ strategy :
9+ matrix :
10+ php_version : [7.1, 7.2, 7.3, 7.4]
11+ composer_flags : ['', '--prefer-lowest']
12+
13+ steps :
14+ - uses : actions/checkout@v2
15+
16+ - name : Install dependencies
17+ uses : php-actions/composer@v5
18+ with :
19+ php_version : ${{ matrix.php_version }}
20+ args : ${{ matrix.composer_flags }}
21+ command : update
22+
23+ - name : Run tests
24+ uses : php-actions/phpunit@v3
25+ with :
26+ version : 6
27+ php_version : ${{ matrix.php_version }}
28+ args : ' --coverage-clover ./tests/logs/clover.xml'
29+ php_extensions : xdebug
30+ env :
31+ XDEBUG_MODE : coverage
32+
33+ - name : Run Codesniffer
34+ run : vendor/bin/phpcs --standard=PSR2 ./src
35+
36+ # - name: Submit coverage to Coveralls
37+ # # We use php-coveralls library for this, as the official Coveralls GitHub Action lacks support for clover reports:
38+ # # https://github.com/coverallsapp/github-action/issues/15
39+ # env:
40+ # COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+ # COVERALLS_PARALLEL: true
42+ # COVERALLS_FLAG_NAME: ${{ github.job }}-PHP-${{ matrix.php_version }} ${{ matrix.composer_flags }}
43+ # run: |
44+ # composer global require php-coveralls/php-coveralls
45+ # ~/.composer/vendor/bin/php-coveralls -v
46+
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# Lumberjack Core Framework
22[ ![ Latest Stable Version] ( https://poser.pugx.org/rareloop/lumberjack-core/v/stable )] ( https://packagist.org/packages/rareloop/lumberjack-core )
3- ![ CI] ( https://travis-ci.org/Rareloop /lumberjack-core.svg?branch=master )
3+ ![ CI] ( https://github.com/rareloop /lumberjack-core/actions/workflows/ci.yml/badge .svg?branch=master )
44![ Coveralls] ( https://coveralls.io/repos/github/Rareloop/lumberjack-core/badge.svg?branch=master )
55![ Downloads] ( https://img.shields.io/packagist/dt/rareloop/lumberjack-core.svg )
66[ ![ Trees Planted] ( https://img.shields.io/ecologi/trees/rareloop.svg?label=trees%20planted )] ( https://ecologi.com/rareloop?r=60618d1bcdd7a4001d7b86f2 )
Original file line number Diff line number Diff line change 2828 "php-coveralls/php-coveralls" : " ^2.0" ,
2929 "mockery/mockery" : " ^1.3.0" ,
3030 "brain/monkey" : " ~2.4.0" ,
31- "squizlabs/php_codesniffer" : " ^3.3.1 " ,
31+ "squizlabs/php_codesniffer" : " ^3.6.0 " ,
3232 "php-mock/php-mock" : " ^2.0" ,
3333 "codedungeon/phpunit-result-printer" : " ^0.19.13" ,
3434 "codedungeon/php-cli-colors" : " ^1.10.7" ,
You can’t perform that action at this time.
0 commit comments