forked from AJenbo/agcms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade development tools, clean up phpdoc, test PHP8
- Loading branch information
Showing
101 changed files
with
4,875 additions
and
4,168 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,61 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
types: [ opened, synchronize ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php: [ '7.4', '8.0' ] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
tools: composer:v2, cs2pr | ||
coverage: pcov | ||
|
||
- name: Get Cache | ||
id: composer-cache | ||
run: echo "::set-output name=dir::$(cd ./application && composer config cache-files-dir)" | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: composer- | ||
|
||
- name: Install dependencies | ||
working-directory: ./application | ||
run: composer install | ||
|
||
- name: PHPStan | ||
working-directory: ./application | ||
run: vendor/bin/phpstan | ||
|
||
- name: PHPUnit | ||
run: application/vendor/bin/phpunit --printer mheap\\GithubActionsReporter\\Printer | ||
|
||
- name: Upload coverage to Coveralls | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: application/vendor/bin/php-coveralls | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
|
||
- name: Upload coverage to Codacy | ||
uses: codacy/codacy-analysis-cli-action@v4.2.0 | ||
|
||
- name: Upload coverage to Codeclimate | ||
uses: paambaati/codeclimate-action@v3.1.0 | ||
env: | ||
CC_TEST_REPORTER_ID: dded30dc4b62f393c80ed752f13c7c7efaf748c3573daee0f4040615457ff9c0 |
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 |
---|---|---|
|
@@ -12,3 +12,4 @@ | |
/build | ||
/node_modules | ||
/tests/application/theme/cache | ||
/.phpunit.result.cache |
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
Oops, something went wrong.