Fix docker integration test (#18) #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Merge | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
run: | |
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
operating-system: [ ubuntu-22.04 ] | |
php-versions: ['8.1'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: mbstring, intl, xdebug | |
- name: PHP Version | |
run: php -v | |
- name: Install dependencies | |
if: steps.composer-cache.outputs.cache-hit != 'true' | |
run: | | |
composer validate | |
composer install --prefer-dist --no-progress --no-suggest | |
- name: Test | |
run: vendor/bin/phpunit | |
- name: Report Coverage | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
composer check | |
echo ${{ matrix.php-versions }} | |
export CODECOVERAGE=1 && vendor/bin/phpunit --verbose --coverage-clover=clover.xml | |
vendor/bin/php-coveralls --coverage_clover=clover.xml -v |