Skip to content

Run CI on php 8.3 (#4) #60

Run CI on php 8.3 (#4)

Run CI on php 8.3 (#4) #60

Workflow file for this run

name: "Testing"
env:
APP_ENV: test
on: [push, pull_request]
jobs:
test:
name: "Test"
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- "8.3"
- "8.2"
- "8.1"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
- name: "Install dependencies with Composer"
uses: "php-actions/composer@v6"
- name: PHPUnit Tests
uses: php-actions/phpunit@v3
env:
XDEBUG_MODE: coverage
with:
bootstrap: vendor/autoload.php
configuration: phpunit.xml
php_extensions: xdebug
args: tests --coverage-clover ./coverage.xml
- name: Upload to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODE_COV_TOKEN }}
files: ./coverage.xml
verbose: true