Skip to content

chore(deps): update actions/checkout action to v4 (#113) #501

chore(deps): update actions/checkout action to v4 (#113)

chore(deps): update actions/checkout action to v4 (#113) #501

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- "*.*.x"
workflow_dispatch:
jobs:
coding-standard:
runs-on: ubuntu-20.04
name: Coding Standard
steps:
- uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
coverage: none
extensions: json
tools: cs2pr
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"
- name: Coding Standard
env:
PHPCS_ARGS: -q --no-colors --report=checkstyle
run: make -is cs | cs2pr
phpstan:
runs-on: ubuntu-20.04
name: PHPStan
steps:
- uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
coverage: none
extensions: json
tools: cs2pr
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"
- name: PHPStan
env:
PHPSTAN_ARGS: --error-format=checkstyle
run: make -is static-analysis | cs2pr
tests:
runs-on: ubuntu-20.04
strategy:
matrix:
php: ["8.1", "8.2"]
dependencies: ["", --prefer-lowest]
name: PHP ${{ matrix.php }} Test ${{ matrix.dependencies }}
steps:
- uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
extensions: json, mbstring
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"
with:
dependency-versions: "${{ matrix.dependencies }}"
- name: Run tests
run: make test