-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #7 GitHub actions and php8 support (acrobat)
This PR was merged into the 1.0-dev branch. Discussion ---------- I wanted to add php8 support to park-manager/hubkit and this was one the dependencies blocking php8 support. You can see the build result here -> https://github.com/acrobat/version/actions/runs/416283590 So this PR does: - Switch from travis-ci to github actions - Allow and testing against php 8 - Fix phpstan errors after upgrading to 0.12 (that version is the earliest with php8 support) If you want I can split this PR up into smaller PR's (all doing just one 1 thing) Commits ------- f8816f7 Switch CI from travis-ci to github actions e190034 Allow php8 944cc1b PHPStan 0.12 fixes
- Loading branch information
Showing
8 changed files
with
130 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Full CI process | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
name: PHP ${{ matrix.php-versions }} | ||
runs-on: ubuntu-18.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0'] | ||
|
||
steps: | ||
# —— Setup Github actions 🐙 ————————————————————————————————————————————— | ||
# https://github.com/actions/checkout (official) | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
# https://github.com/shivammathur/setup-php (community) | ||
- | ||
name: Setup PHP and composer with shivammathur/setup-php | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
coverage: none | ||
|
||
# —— Composer 🧙️ ————————————————————————————————————————————————————————— | ||
- | ||
name: Install Composer dependencies | ||
run: composer update --no-progress --no-interaction --no-suggest --optimize-autoloader --ansi | ||
|
||
## —— Tests ✅ ——————————————————————————————————————————————————————————— | ||
- | ||
name: Run Tests | ||
run: vendor/bin/phpunit --disallow-test-output --verbose | ||
phpstan: | ||
name: PHPStan | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
# https://github.com/shivammathur/setup-php (community) | ||
- | ||
name: Setup PHP and composer with shivammathur/setup-php | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '7.4' | ||
coverage: none | ||
|
||
# —— Composer 🧙️ ————————————————————————————————————————————————————————— | ||
- | ||
name: Install Composer dependencies | ||
run: composer update --no-progress --no-interaction --no-suggest --optimize-autoloader --ansi | ||
|
||
- | ||
name: Run PHPStan | ||
run: vendor/bin/phpstan analyse |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
includes: | ||
- vendor/phpstan/phpstan-phpunit/extension.neon | ||
|
||
parameters: | ||
level: 7 | ||
paths: | ||
- src | ||
- tests | ||
autoload_files: | ||
- vendor/autoload.php | ||
ignoreErrors: | ||
includes: | ||
- vendor/phpstan/phpstan-phpunit/extension.neon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters