Skip to content

Guzzle 7

Guzzle 7 #23

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
extensions: dom
coverage: xdebug
- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-progress --no-suggest --ignore-platform-reqs
- name: PHP Code Sniffer
if: matrix.php-versions == '8.1'
run: composer phpcs
- name: PHP Mess Detector
if: matrix.php-versions == '8.1'
run: composer phpmd
- name: PHP Unit Tests with coverage
if: matrix.php-versions == '8.1'
run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- name: PHP Unit Tests
if: matrix.php-versions != '8.1'
run: composer test
- name: Send to coveralls
if: matrix.php-versions == '8.1'
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v