pwa support for elastic skin #937
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
cs: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')" | |
name: Coding Style | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "8.3" | |
extensions: mbstring | |
tools: composer:v2 | |
coverage: none | |
- name: Setup composer | |
run: | | |
cp composer.json-dist composer.json | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-interaction --no-progress | |
- name: Check Coding Style - PHP | |
run: vendor/bin/php-cs-fixer fix --dry-run --using-cache=no --diff --verbose | |
- name: Check composer.json format | |
run: composer validate --strict --no-check-lock && composer normalize --dry-run --no-check-lock | |
- name: Check Coding Style - JS | |
run: | | |
npm add -D eslint eslint-plugin-import eslint-config-airbnb-base eslint-plugin-unicorn | |
npx eslint --ext .js . | |
phpstan: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')" | |
name: Static Analysis | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "8.3" | |
extensions: mbstring | |
tools: composer:v2 | |
coverage: none | |
- name: Setup composer | |
run: | | |
cp composer.json-dist composer.json | |
composer require "kolab/net_ldap3:~1.1.1" --no-update | |
composer require "laravel/dusk:^7.9" --no-update | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-interaction --no-progress | |
- name: Run Static Analysis | |
run: | | |
rm -r public_html # remove once https://github.com/phpstan/phpstan/issues/10321 is fixed | |
vendor/bin/phpstan analyse |