Skip to content

Refactor Templates/News.phtml due to lint error #445

Refactor Templates/News.phtml due to lint error

Refactor Templates/News.phtml due to lint error #445

Workflow file for this run

# vim: set colorcolumn=:
name: bnetdocs-web
on: [push, pull_request]
permissions:
contents: read
jobs:
linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Update apt cache
run: sudo apt-get update
- name: Install php 8.1
run: sudo apt-get install php8.1-cli
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: lib
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install composer/vendor dependencies
run: composer install --prefer-dist --no-progress --ignore-platform-reqs
- name: Validate PHP syntax
run: bash -c 'set -e;for file in $(find ./src -type f -regex ".*\.\(php\|phtml\)" -print); do php -e -l -f "$file"; done'