Skip to content

Merge pull request #3 from sanderdlm/drop-inotify #44

Merge pull request #3 from sanderdlm/drop-inotify

Merge pull request #3 from sanderdlm/drop-inotify #44

Workflow file for this run

name: Test & static analysis
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
phpstan:
runs-on: "ubuntu-20.04"
strategy:
matrix:
php-version:
- "8.1"
steps:
- name: "Checkout code"
uses: "actions/checkout@v2"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
extensions: inotify
coverage: "none"
php-version: "${{ matrix.php-version }}"
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"
with:
dependency-versions: "highest"
- name: "Run a static analysis with phpstan/phpstan"
run: "vendor/bin/phpstan analyse"
phpcs:
runs-on: "ubuntu-20.04"
strategy:
matrix:
php-version:
- "8.1"
steps:
- name: "Checkout code"
uses: "actions/checkout@v2"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
extensions: inotify
coverage: "none"
php-version: "${{ matrix.php-version }}"
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"
with:
dependency-versions: "highest"
- name: "Run phpcs"
run: "vendor/bin/phpcs"
phpunit:
runs-on: "ubuntu-20.04"
strategy:
matrix:
php-version:
- "8.1"
steps:
- name: "Checkout code"
uses: "actions/checkout@v2"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
extensions: inotify
coverage: "none"
php-version: "${{ matrix.php-version }}"
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"
with:
dependency-versions: "highest"
- name: Install image optimizers
run: sudo apt install jpegoptim optipng -y
- name: "Run phpunit"
run: "vendor/bin/phpunit"