Skip to content

Set up code coverage, remove unreachable logic #16

Set up code coverage, remove unreachable logic

Set up code coverage, remove unreachable logic #16

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
lint:
name: Lint with parallel-lint and PHPCS
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
tools: composer
- name: Install composer dependencies
run: composer install
- name: Run parallel-lint
run: vendor/bin/parallel-lint . --exclude vendor
- name: Run phpcs
run: vendor/bin/phpcs -p -s
test:
name: "PHPUnit: PHP ${{ matrix.php }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- 8.3
- 8.4
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer
- name: Install composer dependencies
run: composer install
- name: Run phpunit
run: vendor/bin/phpunit