Skip to content

Update Coverage Setup + Github Actions #1

Update Coverage Setup + Github Actions

Update Coverage Setup + Github Actions #1

Workflow file for this run

name: PR Checks
on:
push:
branches: [ "master", "3.x" ]
permissions: read-all
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- 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
run: composer install --prefer-dist --no-progress
- name: Run test suite
run: composer run coverage
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
file: "coverage/clover.xml"