Skip to content

docs: add CLAUDE.md for Claude Code (IS-841) #149

docs: add CLAUDE.md for Claude Code (IS-841)

docs: add CLAUDE.md for Claude Code (IS-841) #149

Workflow file for this run

name: Tests for Quality Assurance
on:
- "push"
- "pull_request"
jobs:
backend-tests:
runs-on: "ubuntu-20.04"
strategy:
matrix:
php-versions: [ '8.0' ]
steps:
- uses: "actions/checkout@v3"
- name: "Cache dependencies installed with composer"
uses: "actions/cache@v3"
with:
path: "~/.composer/cache"
key: "composer-${{ matrix.php-version }}-${{ hashFiles('composer.json') }}"
restore-keys: "composer-${{ matrix.php-version }}-"
- name: "Setup PHP Action"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-versions }}"
extensions: "intl, xdebug, imagick, apcu, mbstring, bcmath, zip, curl, xsl"
- name: "Install PHP dependencies"
run: "composer install --prefer-dist --no-interaction --optimize-autoloader --no-suggest --no-progress"
- name: "Linting"
run: "vendor/bin/phplint ./src"
- name: "Code Sniffer"
run: "vendor/bin/phpcs -d memory_limit=-1 --standard=PSR2 --extensions=php ./src"
- name: "PHPSpec"
run: "vendor/bin/phpspec run"
- name: "Integration tests"
run: "vendor/bin/phpunit"
frontend-tests:
runs-on: "ubuntu-20.04"
strategy:
matrix:
php-versions: [ '8.0' ]
steps:
- uses: "actions/checkout@v3"
- name: "Setup PHP Action"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-versions }}"
extensions: "intl, xdebug, imagick, apcu, mbstring, bcmath, zip, curl, xsl"
- name: "Install PHP dependencies"
run: "composer install --prefer-dist --no-interaction --optimize-autoloader --no-suggest --no-progress"
- name: "Setup Node with specific version"
uses: actions/setup-node@v3
with:
node-version: 12
- name: "yarn install"
uses: "borales/actions-yarn@v3.0.0"
with:
cmd: "install"
- name: "Run frontend tests"
run: "yarn run test"