Skip to content

Bump phpunit/phpunit from 9.5.13 to 10.5.9 #68

Bump phpunit/phpunit from 9.5.13 to 10.5.9

Bump phpunit/phpunit from 9.5.13 to 10.5.9 #68

# GitHub Actions Documentation: https://docs.github.com/en/actions
name: "build"
on:
push:
branches:
- "main"
tags:
- "*"
pull_request:
branches:
- "main"
# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
# The concurrency group contains the workflow name and the branch name.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
COMPOSER_ROOT_VERSION: "1.99.99"
jobs:
coding-standards:
name: "Coding standards"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout repository"
uses: "actions/checkout@v3"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.1"
coverage: none
- name: "Install dependencies (Composer)"
uses: "ramsey/composer-install@v2"
- name: "Check coding standards (PHP CS Fixer)"
shell: "bash"
run: "composer style-lint"
static-analysis:
name: "Static analysis"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout repository"
uses: "actions/checkout@v3"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.1"
coverage: "none"
- name: "Install dependencies (Composer)"
uses: "ramsey/composer-install@v2"
- name: "Statically analyze code (PHPStan)"
shell: "bash"
run: "composer stan"
unit-tests:
name: "Unit tests"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout repository"
uses: "actions/checkout@v3"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.1"
ini-values: "memory_limit=-1"
- name: "Install dependencies (Composer)"
uses: "ramsey/composer-install@v2"
- name: "Run unit tests (PHPUnit)"
shell: "bash"
run: "composer test-ci"