Skip to content

Bump guzzlehttp/psr7 from 2.4.3 to 2.5.0 #31

Bump guzzlehttp/psr7 from 2.4.3 to 2.5.0

Bump guzzlehttp/psr7 from 2.4.3 to 2.5.0 #31

Workflow file for this run

name: Run tests with coverage
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
id: extract_branch
- name: Setup PHP with Xdebug
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
coverage: xdebug
- name: Validate composer.json and composer.lock
run: composer validate
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run test suite
run: composer run-script coverage-clover
- name: Check test coverage
uses: johanvanhelden/gha-clover-test-coverage-check@v1
id: coverage
with:
percentage: "80"
filename: "coverage.xml"
- name: Publish code coverage
uses: paambaati/codeclimate-action@v3.2.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE_REPORTER_ID }}
with:
coverageLocations: ${{github.workspace}}/coverage.xml:clover
if: steps.extract_branch.outputs.branch == 'main'