3232 fail-fast : false
3333 matrix :
3434 php-version :
35- - " 7.3"
3635 - " 7.4"
36+ - " 8.0"
37+ - " 8.1"
3738
3839 steps :
3940 - name : " Checkout"
@@ -56,48 +57,19 @@ jobs:
5657 key : " php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }}"
5758 restore-keys : " php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"
5859
59- - name : " Authorize private packagist"
60- env :
61- COMPOSER_TOKEN : ${{ secrets.COMPOSER_TOKEN }}
62- run : " if [[ $COMPOSER_TOKEN ]]; then composer config --global --auth http-basic.repo.packagist.com token $COMPOSER_TOKEN; fi"
63-
6460 - name : " Install dependencies with composer"
6561 run : " composer install --no-ansi --no-interaction --no-progress"
6662
6763 - name : " Run tests with phpunit/phpunit"
6864 env :
6965 SS_DATABASE_PORT : ${{ job.services.mysql.ports['3306'] }}
70- run : " vendor/bin/phpunit --coverage-html=build/logs/ coverage/html --coverage- xml=build/logs/coverage "
66+ run : " vendor/bin/phpunit --coverage-clover= coverage. xml"
7167
72- - name : " Archive code coverage results"
73- uses : " actions/upload-artifact@v2 "
68+ - name : " Upload coverage results to CodeCov "
69+ uses : codecov/codecov-action@v1
7470 with :
75- name : " coverage"
76- path : " build/logs/coverage/html "
71+ files : ./ coverage.xml # optional
72+ flags : unittests # optional
7773
7874 - name : " Run tests with squizlabs/php_codesniffer"
79- run : " vendor/bin/phpcs src/ tests/ --standard=phpcs.xml.dist --report=checkstyle --report-file=build/logs/checkstyle.xml"
80-
81- - name : " Archive checkstyle results"
82- uses : " actions/upload-artifact@v2"
83- with :
84- name : " checkstyle"
85- path : " build/logs/checkstyle.xml"
86-
87- # - name: "Run tests with phpmd/phpmd"
88- # run: "vendor/bin/phpmd src xml codesize,unusedcode,naming --reportfile build/logs/pmd.xml --exclude vendor/ --exclude autoload.php"
89-
90- - name : " Run tests with phploc/phploc"
91- run : " vendor/bin/phploc --count-tests --exclude vendor/ --log-csv build/logs/phploc.csv --log-xml build/logs/phploc.xml src/ tests/
92- "
93- - name : " Run tests with pdepend/pdepend"
94- run : " vendor/bin/pdepend --jdepend-xml=build/logs/jdepend.xml --ignore=vendor src"
95-
96- - name : " Publish documentation"
97- run : " vendor/bin/phpdox -f phpdox.xml"
98-
99- - name : " Archive documentation"
100- uses : " actions/upload-artifact@v2"
101- with :
102- name : " documentation"
103- path : " docs/html"
75+ run : " vendor/bin/phpcs -s --report=summary --standard=phpcs.xml.dist --extensions=php,inc --ignore=autoload.php --ignore=vendor/ src/ tests/"
0 commit comments