Skip to content

Update #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: 0.3.x
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ LANGS_PATH=languages
PHP_BUILD_VERSION=7.2
PHP_TEST_VERSION=7.4
PHP_MEMORY_LIMIT=256M
XDEBUG_VERSION=3.1.6
WORDPRESS_VERSION=5.6
NODE_VERSION=20.2.0

Expand Down
56 changes: 38 additions & 18 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Continuous Integration
on: [push, pull_request]
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -14,27 +16,45 @@ jobs:
- '8.2'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}

- name: Analysing source code
run: find ./src/ ./tests/ -type f -name '*.php' -print0 | xargs -0 -L 1 -P 4 -- php -l
- name: Analysing source code
run: find ./src/ ./tests/ -type f -name '*.php' -print0 | xargs -0 -L 1 -P 4 -- php -l

- name: Validate composer.json and composer.lock
run: composer validate
- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: PhpUnit
run: ./vendor/bin/phpunit
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-

- name: Psalm
run: ./vendor/bin/psalm --show-info --threads=8 --diff
- name: Set up env config
run: cp .env.example .env

- name: PHPCS
run: ./vendor/bin/phpcs -s --runtime-set ignore_warnings_on_exit 1
- name: Install dependencies
uses: ramsey/composer-install@v3
with:
dependency-versions: highest
composer-options: "--prefer-dist"

- name: PhpUnit
run: ./vendor/bin/phpunit

- name: Psalm
run: ./vendor/bin/psalm --show-info --threads=8 --diff

- name: PHPCS
run: ./vendor/bin/phpcs -s --runtime-set ignore_warnings_on_exit 1
Loading