This repository has been archived by the owner on Jan 9, 2025. It is now read-only.
[WEB-10582] Implement Refresh Token Rotation for serato.com
#14
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
# This workflow is triggered every time a PR is opened and master/release branches have a commit. | |
# The workflow installs dependencies, runs static code analyzers, and runs the test suite. | |
# todo: Enable Phpstan when all apps are updated to 8.2 and we no more support PHP 7.1. | |
# Currently it is impossible to fix Phpstan errors reported on PHP8.2 platform because of deprecations etc. | |
# ./vendor/bin/phpstan analyse -c phpstan.neon | |
name: Code checking and unit tests | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
push: | |
branches: | |
- master | |
- "/^v\\d+\\.\\d+(\\.\\d+)?(-\\S*)?$/" #release branches | |
workflow_dispatch: | |
jobs: | |
unit-tests-and-analyzers: | |
name: "PHP ${{ matrix.php-versions }}: Phpstan, Phpcs, Phpunit tests" | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: [ubuntu-latest] | |
php-versions: ['7.1','8.2'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: ${{ matrix.php-versions }} | |
- name: Cache Composer dependencies | |
uses: actions/cache@v3 | |
with: | |
path: vendor | |
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-php- | |
- name: Install dependencies | |
uses: php-actions/composer@v6 | |
with: | |
php_version: ${{ matrix.php-versions }} | |
php_extensions: gmp | |
version: 2.2 | |
- name: Run static code analyzers & security checker | |
run: | | |
./vendor/bin/phpcs | |
- name: Run test suite | |
run: | | |
php vendor/bin/phpunit |