Skip to content

build: bump actions/checkout from 3 to 4 (#61) #105

build: bump actions/checkout from 3 to 4 (#61)

build: bump actions/checkout from 3 to 4 (#61) #105

Workflow file for this run

name: Build & Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# follows https://www.php.net/supported-versions.php
php-versions: ['8.1', '8.2', '8.3']
phpunit-versions: ['latest']
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
# extensions: mbstring, intl
ini-values: post_max_size=256M, max_execution_time=180
coverage: xdebug
tools: php-cs-fixer, phpunit
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Install Composer dependencies
uses: ramsey/composer-install@v2
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md
- name: Run test suite
run: composer run-script test
- uses: codecov/codecov-action@v3
if: matrix.php-versions == '8.1'
with:
# Comma-separated list of files to upload
files: ./tmp/code-coverage.xml