This repository has been archived by the owner on Jan 9, 2025. It is now read-only.
[WEB-9960] Added getMe method to get logged in user's profile data. #5
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. | |
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','7.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/phpstan analyse -c phpstan.neon | |
./vendor/bin/phpcs | |
- name: Run test suite | |
run: | | |
php vendor/bin/phpunit |