Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Bump composer from fb3c5a2 to 0dcb2a6 #597

Bump composer from fb3c5a2 to 0dcb2a6

Bump composer from fb3c5a2 to 0dcb2a6 #597

Workflow file for this run

on: pull_request
name: Code style review
jobs:
test:
name: PHPUnit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@master
with:
php-version: 8.2
coverage: none
- name: Install Dependencies
run: |
composer install --no-interaction --no-progress
- name: Run unit tests
run: |
vendor/bin/phpunit
review_codestyle:
name: Codestyle
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@master
with:
php-version: 8.2
coverage: none
- name: Install Reviewdog
run: |
wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh| sh -s -- -b $PWD/ v0.9.13
- name: Install Dependencies
run: |
composer install --no-interaction --no-progress
- name: Check codestyle
run: |
vendor/bin/phpcs --report=checkstyle | ./reviewdog -f=checkstyle -name=PHPCS -reporter=github-pr-check
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
static_code_analysis:
name: Static Code Analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@master
with:
php-version: 8.2
coverage: none
- name: Install Reviewdog
run: |
wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh| sh -s -- -b $PWD/ v0.9.13
- name: Install Dependencies
run: |
composer install --no-interaction --no-progress
- name: Static code analysis
run: |
php -d memory_limit=1G vendor/bin/phpstan analyse --error-format=checkstyle | ./reviewdog -f=checkstyle -name=PHPStan -reporter=github-pr-check
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}