Skip to content

Commit

Permalink
Merged pull request #39 from ibexa/merge-bump-php-req
Browse files Browse the repository at this point in the history
Merged-up:
* b411f65 [CI] Moved php-cs-fixer to another job
  • Loading branch information
alongosz authored Dec 14, 2021
2 parents 29035f2 + 5c4c5d2 commit 389a96a
Showing 1 changed file with 31 additions and 27 deletions.
58 changes: 31 additions & 27 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,31 @@ on:
pull_request: ~

jobs:
cs_fix:
name: Run code style check
runs-on: "ubuntu-20.04"
strategy:
matrix:
php:
- '8.0'
steps:
- uses: actions/checkout@v2

- name: Setup PHP Action
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
extensions: 'pdo_sqlite, gd'
tools: cs2pr

- uses: "ramsey/composer-install@v1"
with:
dependency-versions: "highest"

- name: Run code style check
run: composer run-script check-cs -- --format=checkstyle | cs2pr

tests:
name: Unit tests & SQLite integration tests
runs-on: "ubuntu-20.04"
Expand All @@ -16,16 +41,10 @@ jobs:
strategy:
fail-fast: false
matrix:
experimental: [ false ]
php:
- '7.4'
composer_options: [ "" ]
include:
- php: '8.0'
composer_options: "--ignore-platform-req php"
- php: '8.1'
composer_options: "--ignore-platform-req php"
skip_code_style: true
- '8.0'
- '8.1'

steps:
- uses: actions/checkout@v2
Expand All @@ -41,18 +60,13 @@ jobs:
- uses: "ramsey/composer-install@v1"
with:
dependency-versions: "highest"
composer-options: "${{ matrix.composer_options }}"

- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Run PHPStan analysis
run: composer run-script phpstan

- name: Run code style check
if: matrix.skip_code_style != true
run: composer run-script check-cs -- --format=checkstyle | cs2pr

- name: Run unit test suite
run: composer run-script unit

Expand Down Expand Up @@ -84,12 +98,8 @@ jobs:
matrix:
php:
- '7.4'
composer_options: [ "" ]
include:
- php: '8.0'
composer_options: "--ignore-platform-req php"
- php: '8.1'
composer_options: "--ignore-platform-req php"
- '8.0'
- '8.1'

steps:
- uses: actions/checkout@v2
Expand All @@ -105,7 +115,6 @@ jobs:
- uses: "ramsey/composer-install@v1"
with:
dependency-versions: "highest"
composer-options: "${{ matrix.composer_options }}"

- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
Expand Down Expand Up @@ -144,12 +153,8 @@ jobs:
matrix:
php:
- '7.4'
composer_options: [ "" ]
include:
- php: '8.0'
composer_options: "--ignore-platform-req php"
- php: '8.1'
composer_options: "--ignore-platform-req php"
- '8.0'
- '8.1'

steps:
- uses: actions/checkout@v2
Expand All @@ -165,7 +170,6 @@ jobs:
- uses: "ramsey/composer-install@v1"
with:
dependency-versions: "highest"
composer-options: "${{ matrix.composer_options }}"

- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
Expand Down

0 comments on commit 389a96a

Please # to comment.