Update readme.txt #111
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: trunk | |
on: | |
push: | |
branches: | |
- trunk | |
jobs: | |
build: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.4' | |
coverage: none | |
tools: composer, cs2pr | |
- name: Get Composer cache directory | |
id: composer-cache | |
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
- name: Set up Composer caching | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache-composer-dependencies | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-composer- | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
cache: 'npm' | |
- name: Versions | |
run: | | |
php --version | |
composer --version | |
node --version | |
npm --version | |
- name: PHP Syntax check | |
working-directory: ./ | |
run: find . \( -name '*.php' \) -exec php -lf {} \; | |
- name: Set up composer | |
working-directory: ./ | |
run: composer install | |
- name: PHPCS | |
working-directory: ./ | |
run: composer run check-cs | |
- name: Set up node modules | |
working-directory: ./ | |
run: npm ci | |
- name: CSS Lint | |
working-directory: ./ | |
run: npm run lint:css | |
- name: JavaScript Lint | |
working-directory: ./ | |
run: npm run lint:js | |
- name: Test build | |
working-directory: ./ | |
run: npm run build |