-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update CI * Add PHPStan * Upgrade and fix tests * Remove stub class
- Loading branch information
Showing
10 changed files
with
914 additions
and
461 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# These are supported funding model platforms | ||
github: [phpgt] |
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,66 @@ | ||
name: CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
composer: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Cache Composer dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: /tmp/composer-cache | ||
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | ||
|
||
- uses: php-actions/composer@v5 | ||
|
||
- 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: /tmp/github-actions | ||
|
||
phpunit: | ||
runs-on: ubuntu-latest | ||
needs: [composer] | ||
|
||
steps: | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: build-artifact | ||
path: /tmp/github-actions | ||
|
||
- name: Extract build archive | ||
run: tar -xvf /tmp/github-actions/build.tar ./ | ||
|
||
- name: PHP Unit tests | ||
uses: php-actions/phpunit@v2 | ||
with: | ||
php_version: 8.0 | ||
php_extensions: xdebug | ||
configuration: test/phpunit/phpunit.xml | ||
bootstrap: vendor/autoload.php | ||
|
||
phpstan: | ||
runs-on: ubuntu-latest | ||
needs: [composer] | ||
|
||
steps: | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: build-artifact | ||
path: /tmp/github-actions | ||
|
||
- name: Extract build archive | ||
run: tar -xvf /tmp/github-actions/build.tar ./ | ||
|
||
- name: PHP Static Analysis | ||
uses: php-actions/phpstan@v2 | ||
with: | ||
path: src/ |
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
Oops, something went wrong.