Skip to content

Fix default base path for assets #47

Fix default base path for assets

Fix default base path for assets #47

Workflow file for this run

name: Test & static analysis
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
phpstan:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout code"
uses: "actions/checkout@v4"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.2"
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
- name: "Run a static analysis with phpstan/phpstan"
run: "vendor/bin/phpstan analyse"
phpcs:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout code"
uses: "actions/checkout@v4"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.2"
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
- name: "Run phpcs"
run: "vendor/bin/phpcs"
phpunit:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout code"
uses: "actions/checkout@v4"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.2"
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
- name: Install image optimizers
run: sudo apt install jpegoptim optipng -y
- name: "Run phpunit"
run: "vendor/bin/phpunit"