Skip to content

Commit

Permalink
Allow >= 7.2 (fix for 8.0) (#193)
Browse files Browse the repository at this point in the history
* Allow >= 7.2 (fix for 8.0)

* Update CI

* Update CI

* Bootstrap autoloader

* Archive builds for faster actions

* Play with Github Actions

* Fix PHPStan
  • Loading branch information
g105b authored Dec 10, 2020
1 parent cf4e281 commit d3bd87c
Show file tree
Hide file tree
Showing 3 changed files with 340 additions and 143 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: php-actions/composer@v2
- name: Upload build for test runner
- uses: php-actions/composer@dynamic-docker-debug

- name: Archive build
run: mkdir /tmp/github-actions/ && tar -cvf /tmp/github-actions/build.tar ./

- name: Upload build archive for test runners
uses: actions/upload-artifact@v2
with:
name: build-artifact
path: ./
path: /tmp/github-actions

phpunit:
runs-on: ubuntu-latest
Expand All @@ -23,13 +27,17 @@ jobs:
- uses: actions/download-artifact@v2
with:
name: build-artifact
path: ./
path: /tmp/github-actions

- name: Extract build archive
run: tar -xvf /tmp/github-actions/build.tar ./

- name: PHP Unit tests
uses: php-actions/phpunit@v9
with:
php_version: 8.0
configuration: test/phpunit/phpunit.xml
bootstrap: vendor/autoload.php

phpstan:
runs-on: ubuntu-latest
Expand All @@ -39,7 +47,10 @@ jobs:
- uses: actions/download-artifact@v2
with:
name: build-artifact
path: ./
path: /tmp/github-actions

- name: Extract build archive
run: tar -xvf /tmp/github-actions/build.tar ./

- name: PHP Static Analysis
uses: php-actions/phpstan@master
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",

"require": {
"php": "^7.2",
"php": ">=7.2",
"ext-PDO": "*",
"phpgt/config": "*"
},
Expand Down
Loading

0 comments on commit d3bd87c

Please sign in to comment.