Skip to content

Commit

Permalink
Merged branch '1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
konradoboza committed Dec 13, 2021
2 parents 13a57f9 + ceac090 commit ff06e8d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 13 deletions.
38 changes: 27 additions & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,43 @@ 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: Tests
runs-on: "ubuntu-20.04"
timeout-minutes: 10
continue-on-error: ${{ matrix.experimental }}

strategy:
fail-fast: false
matrix:
php:
- '7.4'
composer_options: [ "" ]
experimental: [false]
include:
- php: '8.0'
composer_options: "--ignore-platform-req php"
experimental: true
- '8.0'
- '8.1'

steps:
- uses: actions/checkout@v2
Expand All @@ -40,13 +60,9 @@ 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
run: composer run-script check-cs -- --format=checkstyle | cs2pr
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
}
],
"require": {
"php": "^7.4",
"php": "^7.4 || ^8.0",
"composer-plugin-api": "^2.0",
"composer/semver": "^3.2"
},
"require-dev": {
"composer/composer": "^2.0.8",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "0.12.57",
"phpstan/phpstan": "0.12.92",
"phpstan/phpstan-phpunit": "^0.12.16",
"phpstan/phpstan-webmozart-assert": "^0.12.7",
"symfony/dotenv": "^5.2",
Expand Down

0 comments on commit ff06e8d

Please sign in to comment.