Skip to content

chore: drop phpunit 8 and 9, bump 10 and 12 #45

chore: drop phpunit 8 and 9, bump 10 and 12

chore: drop phpunit 8 and 9, bump 10 and 12 #45

name: Lint and analyse files
permissions:
contents: read
on: [push, pull_request]
jobs:
lint-php:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Use php 7.4
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
- name: Validate composer.json and composer.lock
run: composer validate
- name: Cache module
uses: actions/cache@v5
with:
path: ~/.composer/cache/
key: composer-cache
- name: Install dependencies
run: composer install --no-interaction
- name: Lint files
run: composer run phpcs
analyse-php:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Use php 7.4
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
- name: Cache module
uses: actions/cache@v5
with:
path: ~/.composer/cache/
key: composer-cache
- name: Install dependencies
run: composer install --no-interaction
- name: Analyse files
run: composer run phpstan