fix(tokens): Fixes the potential of deleting a working refresh_token when no new one is available #375
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: Static Code Analysis | |
on: | |
pull_request: | |
push: | |
branches: | |
- dev | |
- 'release/**' | |
- 'feature/**' | |
- 'fix/**' | |
env: | |
PHP_VERSION: '7.4' | |
WP_MULTISITE: 0 | |
COMPOSER_VERSION: '2.2' | |
ACTION_VERSION: 2 | |
jobs: | |
check_static_analysis: | |
name: Setup & Perform Static Analysis | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
# https://github.com/marketplace/actions/checkout | |
uses: actions/checkout@v2 | |
- name: Get Composer Cache Directory | |
id: composer-cache | |
if: ${{ !env.ACT }} | |
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: Cache Composer dependencies | |
if: ${{ !env.ACT }} | |
# https://github.com/marketplace/actions/cache | |
uses: actions/cache@v3 | |
env: | |
composer-cache-name: cache-composer | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-build-${{ env.composer-cache-name }}-v${{ env.ACTION_VERSION }}-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.composer-cache-name }}-v${{ env.ACTION_VERSION }}- | |
- name: Setup PHP & Composer Environment | |
# https://github.com/marketplace/actions/setup-php-action | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ env.PHP_VERSION }} | |
tools: "composer:${{ env.COMPOSER_VERSION }}" | |
- name: Environment Check | |
run: php -v && composer --version | |
- name: Install Composer Dependencies | |
run: composer install | |
- name: Perform Static Analysis | |
run: composer run-script analyze |