Skip to content

Remove teapot/status-code dependency #11

Remove teapot/status-code dependency

Remove teapot/status-code dependency #11

Workflow file for this run

name: PHP Pipeline
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
pipeline:
name: PHP ${{ matrix.php-version }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
php-version:
- '8.2'
- '8.3'
experimental:
- false
include:
- php-version: '8.4'
experimental: true
steps:
- name: Repository checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup PHP 8.2
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2.29.0
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
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 --no-interaction
- name: Run Code Linter
run: make lint
- name: Run PHPUnit
run: make phpunit