-
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.
Merge pull request #6 from emonkak/php-8
Update PHP restriction to 8.1 or higher
- Loading branch information
Showing
104 changed files
with
2,243 additions
and
2,476 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,48 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
include: | ||
- php-version: '8.1' | ||
- php-version: '8.2' | ||
- php-version: '8.3' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Checkout the repository | ||
uses: actions/checkout@v4 | ||
- name: Get composer cache directory | ||
id: composer-cache | ||
run: echo 'dir=$(composer config cache-files-dir)' >> $GITHUB_OUTPUT | ||
- name: Cache dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
- name: Install dependencies | ||
run: composer install --no-ansi --no-interaction --no-progress --prefer-dist | ||
- name: Run Psalm | ||
run: ./vendor/bin/psalm --no-cache --no-progress | ||
- name: Run PHP CS Fixer | ||
run: ./vendor/bin/php-cs-fixer fix --dry-run --using-cache=no --stop-on-violation --show-progress=none --verbose | ||
- name: Run tests | ||
run: ./vendor/bin/phpunit --coverage-clover ./coverage/clover.xml | ||
- name: Upload coverage results | ||
continue-on-error: true | ||
uses: coverallsapp/github-action@v2 | ||
with: | ||
file: ./coverage/clover.xml | ||
flag-name: php-${{ matrix.php-version }} | ||
parallel: true |
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,5 +1,5 @@ | ||
.DS_Store | ||
/.php_cs.cache | ||
/.php-cs-fixer.cache | ||
/.phpunit.cache/ | ||
/.phpunit.result.cache | ||
/composer.lock | ||
/vendor/ |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"$schema": "/phpactor.schema.json", | ||
"language_server_psalm.enabled": false, | ||
"language_server_php_cs_fixer.enabled": true, | ||
"prophecy.enabled": true | ||
} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Emonkak\Orm | ||
|
||
[![Build Status](https://travis-ci.org/emonkak/php-orm.svg?branch=master)](https://travis-ci.org/emonkak/php-orm) | ||
[![Coverage Status](https://coveralls.io/repos/github/emonkak/php-orm/badge.svg?branch=master)](https://coveralls.io/github/emonkak/php-orm?branch=master) | ||
![CI Status](https://github.com/emonkak/php-orm/actions/workflows/ci.yml/badge.svg) | ||
[![Coverage Status](https://coveralls.io/repos/github/emonkak/php-orm/badge.svg)](https://coveralls.io/github/emonkak/php-orm) |
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
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
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.