#102: Fix status codes for expired tokens #235
Workflow file for this run
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: "Check plugin code" | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Validate composer.json and composer.lock | |
run: composer validate --strict | |
- name: Cache Composer packages | |
id: composer-cache | |
uses: actions/cache@v2 | |
with: | |
path: vendor | |
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-php- | |
- name: Check PHP Version | |
run: php --version | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress | |
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" | |
# Docs: https://getcomposer.org/doc/articles/scripts.md | |
- name: Run PHPCS design on plugin | |
run: vendor/bin/phpcs simple-jwt-login/ --extensions=php | |
- name: Run PHPMD design on plugin | |
run: vendor/bin/phpmd simple-jwt-login/ text design | |
- name: Run PHPMD cleancode on plugin | |
run: vendor/bin/phpmd simple-jwt-login/ text cleancode | |
- name: Run PHPMD unusedcode on plugin | |
run: vendor/bin/phpmd simple-jwt-login/ text unusedcode | |
- name: Run PHPMD naming on plugin | |
run: vendor/bin/phpmd simple-jwt-login/ text naming | |
- name: Run PHPMD controversial on plugin | |
run: vendor/bin/phpmd simple-jwt-login/ text controversial | |
- name: Run phpstan on plugin | |
run: vendor/bin/phpstan analyse simple-jwt-login -c phpstan.neon --memory-limit=256M | |
- name: Run PHPCS design on tests | |
run: vendor/bin/phpcs tests/ | |
- name: Run PHPMD design on tests | |
run: vendor/bin/phpmd tests text design | |
- name: Run PHPMD unusedcode on tests | |
run: vendor/bin/phpmd tests/ text unusedcode | |
- name: Run PHPMD naming on tests | |
run: vendor/bin/phpmd tests/ text naming | |
- name: Run PHPMD controversial on tests | |
run: vendor/bin/phpmd tests/ text controversial |