Skip to content

Backport of force rest credentials option from PR #6817 (#6825) #944

Backport of force rest credentials option from PR #6817 (#6825)

Backport of force rest credentials option from PR #6817 (#6825) #944

Workflow file for this run

name: Styling
on:
push:
branches: [ rel-701 ]
pull_request:
branches: [ rel-701 ]
permissions:
contents: read
jobs:
php_styling:
runs-on: ubuntu-22.04
name: PHP
steps:
- uses: actions/checkout@v3
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
- name: Report PHP Version
run: php -v
- name: Install php_codesniffer
run: |
failTest=false
composer global require "squizlabs/php_codesniffer=3.*" || failTest=true
if $failTest; then
exit 1
fi
- name: Check PHP Styling
run: |
failTest=false
$HOME/.composer/vendor/bin/phpcs -p -n --extensions=php,inc --report-width=120 --standard=ci/phpcs.xml --report=full . || failTest=true
if $failTest; then
exit 1
fi
css_styling:
runs-on: ubuntu-22.04
name: CSS
steps:
- uses: actions/checkout@v3
- name: Install npm package
uses: actions/setup-node@v3
with:
node-version: '18'
- name: npm install
run: |
failTest=false
npm install || failTest=true
if $failTest; then
exit 1
fi
- name: Check CSS Styling
run: |
failTest=false
npx stylelint "**/*.css" || failTest=true
npx stylelint "**/*.scss" || failTest=true
if $failTest; then
exit 1
fi