Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: MatanYadaev/laravel-eloquent-spatial
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.1.1
Choose a base ref
...
head repository: MatanYadaev/laravel-eloquent-spatial
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Jul 20, 2022

  1. Update CHANGELOG

    MatanYadaev authored and github-actions[bot] committed Jul 20, 2022
    Copy the full SHA
    199f2b1 View commit details

Commits on Aug 29, 2022

  1. Fix SRID (#49)

    * Fix tests to use valid latitude and longitude
    
    * Add test to identify invalid latitude or longitude
    
    * Fix docs to use correct latitude and longitude
    
    * Use SRID in API.md
    
    * Improve SpatialBuilder tests to use SRID
    
    * Fix the code to use constant axis order
    
    * Fix API.md
    
    Co-authored-by: Matan Yadaev <matan@zerolimits.io>
    MatanYadaev and Matan Yadaev authored Aug 29, 2022
    Copy the full SHA
    6b603bc View commit details
  2. Update CHANGELOG

    MatanYadaev authored and github-actions[bot] committed Aug 29, 2022
    Copy the full SHA
    056e574 View commit details

Commits on Sep 6, 2022

  1. Support MariaDB (#52)

    * add mariadb to ci
    
    * fix ci
    
    * remove matrix fail-fast
    
    * fix ci
    
    * fix mariadb issue
    
    * fix tests
    
    * fix docs
    
    * set fail-fast: false
    
    * fix test
    
    * fix phpstan
    
    * fix code coverage
    
    Co-authored-by: Matan Yadaev <matan@zerolimits.io>
    MatanYadaev and Matan Yadaev authored Sep 6, 2022
    Copy the full SHA
    88ffd79 View commit details
  2. Update CHANGELOG

    MatanYadaev authored and github-actions[bot] committed Sep 6, 2022
    Copy the full SHA
    436dd27 View commit details

Commits on Sep 22, 2022

  1. Add whereNotWithin and whereNotContains Builder method (#54)

    * add-not-within done
    
    * Two functions added NotWithin and NotContains
    
    * .vscode ignored and unnecessary test point removed
    dzhwar-k authored Sep 22, 2022
    Copy the full SHA
    f255f0b View commit details
  2. add assertion to whereNotWithin test

    Matan Yadaev committed Sep 22, 2022
    Copy the full SHA
    3938c2f View commit details
  3. Update CHANGELOG

    MatanYadaev authored and github-actions[bot] committed Sep 22, 2022
    Copy the full SHA
    7d9111b View commit details

Commits on Sep 23, 2022

  1. [WIP] MySQL 5.7 support (#57)

    * add mysql 5.7 to ci
    
    * Add `AxisOrder@supported`
    
    * Fix `AxisOrder@supported` parameter type
    
    * Fix tests
    
    * Remove unnecessary file
    
    * Test the axis order in databases that don't support setting it
    
    * Fix test
    
    Co-authored-by: Matan Yadaev <matan@zerolimits.io>
    MatanYadaev and Matan Yadaev authored Sep 23, 2022
    Copy the full SHA
    de5a041 View commit details
  2. add mysql 5.7 to readme

    Matan Yadaev committed Sep 23, 2022
    Copy the full SHA
    c3c8443 View commit details
  3. Update CHANGELOG

    MatanYadaev authored and github-actions[bot] committed Sep 23, 2022
    Copy the full SHA
    c7c6410 View commit details

Commits on Sep 24, 2022

  1. Make Geomtry objects stringable (#58)

    * added __toString magic method
    
    I needed a way to cast the geometry to a string.
    
    * implement Stringable and return toWkt
    
    * Object cast to string unit tests
    devinfd authored Sep 24, 2022
    Copy the full SHA
    6fb3089 View commit details
  2. Update CHANGELOG

    MatanYadaev authored and github-actions[bot] committed Sep 24, 2022
    Copy the full SHA
    e8b08ea View commit details

Commits on Sep 27, 2022

  1. Query Builder - Support column to have table name (#61)

    * Add test
    
    * Fix
    
    Co-authored-by: Matan Yadaev <matan@zerolimits.io>
    MatanYadaev and Matan Yadaev authored Sep 27, 2022
    Copy the full SHA
    9ce4f4c View commit details
  2. Update CHANGELOG

    MatanYadaev authored and github-actions[bot] committed Sep 27, 2022
    Copy the full SHA
    77295a7 View commit details
  3. Support column with table name in second parameter

    Matan Yadaev committed Sep 27, 2022
    Copy the full SHA
    369d1a0 View commit details
  4. Spatial functions - pass arguments as bindings

    Matan Yadaev committed Sep 27, 2022
    Copy the full SHA
    e511d64 View commit details

Commits on Oct 6, 2022

  1. Add Doctrine types (#65)

    * Move DB config to phpunit.xml
    
    * Add test
    
    * Implementation
    
    * Ignore PhpStan error
    
    * add geometrycollection type
    
    * dont register if doctrine isn't available
    
    * Formatting
    
    Co-authored-by: Matan Yadaev <matan@zerolimits.io>
    MatanYadaev and Matan Yadaev authored Oct 6, 2022
    Copy the full SHA
    c998cc0 View commit details
  2. Update CHANGELOG

    MatanYadaev authored and github-actions[bot] committed Oct 6, 2022
    Copy the full SHA
    13ee58a View commit details
  3. Macroable geometry classes (#66)

    * Add tests
    
    * Implementation
    
    * Documentation
    
    * Fix PhpStan
    
    * Rename tests
    
    Co-authored-by: Matan Yadaev <matan@zerolimits.io>
    MatanYadaev and Matan Yadaev authored Oct 6, 2022
    Copy the full SHA
    19dd241 View commit details
  4. Update CHANGELOG

    MatanYadaev authored and github-actions[bot] committed Oct 6, 2022
    Copy the full SHA
    37eb8a1 View commit details

Commits on Dec 12, 2022

  1. Cast geometry from array (#71)

    * create geometry from array (serialized geometry)
    
    * fromArray method, tests
    
    * documentation, move tests, typo fix, etc
    trin4ik authored Dec 12, 2022
    Copy the full SHA
    904a0a8 View commit details
  2. pr fixes

    Matan Yadaev committed Dec 12, 2022
    Copy the full SHA
    87ef448 View commit details
  3. fix coverage

    Matan Yadaev committed Dec 12, 2022
    Copy the full SHA
    64dd0a6 View commit details
  4. Copy the full SHA
    0f53357 View commit details
  5. add parameter names to API.md

    Matan Yadaev committed Dec 12, 2022
    Copy the full SHA
    2d9628e View commit details
  6. Add Geometry@toSqlExpression method (#70)

    * Add a manual casting function, fixes #69
    
    * Requested changes for #70
    
    * Update .run/Test.run.xml
    
    Co-authored-by: Matan Yadaev <matan.yed@gmail.com>
    
    * Update API.md
    
    Co-authored-by: Matan Yadaev <matan.yed@gmail.com>
    
    * Update tests/Objects/GeometryTest.php
    
    Co-authored-by: Matan Yadaev <matan.yed@gmail.com>
    
    * Update tests/Objects/GeometryTest.php
    
    Co-authored-by: Matan Yadaev <matan.yed@gmail.com>
    
    * Use expression generator in cast and builder, see #70
    
    Co-authored-by: Matan Yadaev <matan.yed@gmail.com>
    Synchro and MatanYadaev authored Dec 12, 2022
    Copy the full SHA
    bfb9a4f View commit details
  7. follow AAA test pattern

    Matan Yadaev committed Dec 12, 2022
    Copy the full SHA
    a926e23 View commit details
  8. Update CHANGELOG

    MatanYadaev authored and github-actions[bot] committed Dec 12, 2022
    Copy the full SHA
    ff62847 View commit details
  9. fix lint issues

    Matan Yadaev committed Dec 12, 2022
    Copy the full SHA
    9360923 View commit details

Commits on Jan 9, 2023

  1. Add HasSpatial trait (#75)

    * Reusable trait rather than adding a method
    
    * corrections from PR review
    - update readme instruction
    - restore phpdoc ide hint
    - trailing newline for phpcs
    
    * Add HasSpatial trait #75
    - typo & cs-fixer fix
    
    * Update README.md
    
    Co-authored-by: Matan Yadaev <matan.yed@gmail.com>
    lukevi and MatanYadaev authored Jan 9, 2023
    Copy the full SHA
    b00b225 View commit details
  2. Update CHANGELOG

    MatanYadaev authored and github-actions[bot] committed Jan 9, 2023
    Copy the full SHA
    756999f View commit details

Commits on Jan 25, 2023

  1. Support PHP 8.2 (#74)

    * add php8.2 to workflows
    
    * make php-cs-fixer work on php8.2
    
    Co-authored-by: Matan Yadaev <matan@zerolimits.io>
    MatanYadaev and Matan Yadaev authored Jan 25, 2023
    Copy the full SHA
    7d4001e View commit details
  2. Update CHANGELOG

    MatanYadaev authored and github-actions[bot] committed Jan 25, 2023
    Copy the full SHA
    5c7a8b6 View commit details

Commits on Feb 3, 2023

  1. Laravel 10 support (#78)

    * Bump dependencies for Laravel 10
    
    * Update GitHub Actions for Laravel 10
    
    * Format composer.json
    
    * Fix for Laravel 10
    
    * Drop support for Laravel 8 and php 8.0
    
    * fixes
    
    * fixes
    
    * Fix test
    
    * Support Laravel 9
    
    * Support Laravel 10 only
    
    * Use getters
    
    ---------
    
    Co-authored-by: Shift <shift@laravelshift.com>
    Co-authored-by: Matan Yadaev <matan@zerolimits.io>
    3 people authored Feb 3, 2023
    Copy the full SHA
    4c9e103 View commit details
  2. Update CHANGELOG

    MatanYadaev authored and github-actions[bot] committed Feb 3, 2023
    Copy the full SHA
    cefa182 View commit details

Commits on Feb 5, 2023

  1. Fix tests badge

    MatanYadaev authored Feb 5, 2023
    Copy the full SHA
    013a1a7 View commit details

Commits on Feb 6, 2023

  1. Support receiving Expression as a parameter in SpatialBuilder met…

    …hods (#76)
    
    * Add Expression typehint to support DB::raw
    
    * Support DB::raw & geometry everywhere, add tests
    
    * Update tests for laravel 10
    
    * Update docs, fix style
    Riley19280 authored Feb 6, 2023
    Copy the full SHA
    a335a19 View commit details
  2. lint fix

    Matan Yadaev committed Feb 6, 2023
    Copy the full SHA
    30cb65a View commit details
  3. clean tests

    Matan Yadaev committed Feb 6, 2023
    Copy the full SHA
    f6aaa1f View commit details
  4. Update CHANGELOG

    MatanYadaev authored and github-actions[bot] committed Feb 6, 2023
    Copy the full SHA
    30b6cff View commit details

Commits on Feb 16, 2023

  1. Bugfix: Model spatial column update using Expression (#81)

    * add test
    
    * Fix
    
    ---------
    
    Co-authored-by: Matan Yadaev <matan@zerolimits.io>
    MatanYadaev and Matan Yadaev authored Feb 16, 2023
    Copy the full SHA
    eec4775 View commit details
  2. Update CHANGELOG

    MatanYadaev authored and github-actions[bot] committed Feb 16, 2023
    Copy the full SHA
    b9f6c6d View commit details

Commits on Feb 28, 2023

  1. Add SRID Enum (#84)

    * Add SRID Enum
    
    * update enum definitions
    
    * Change namespace
    
    * Rename to Srid
    
    * Remove doc block
    Riley19280 authored Feb 28, 2023
    Copy the full SHA
    5b039a5 View commit details
  2. fix api.md

    Matan Yadaev committed Feb 28, 2023
    Copy the full SHA
    cda6834 View commit details
  3. Update CHANGELOG

    MatanYadaev authored and github-actions[bot] committed Feb 28, 2023
    Copy the full SHA
    aff0126 View commit details

Commits on Mar 9, 2023

  1. Update CHANGELOG

    MatanYadaev authored and github-actions[bot] committed Mar 9, 2023
    Copy the full SHA
    8a98223 View commit details

Commits on Mar 20, 2023

  1. Upgrade to Pest 2 (#88)

    * upgrade to pest 2
    
    * Fix PHPStan
    
    ---------
    
    Co-authored-by: Matan Yadaev <matan@zerolimits.io>
    MatanYadaev and Matan Yadaev authored Mar 20, 2023
    Copy the full SHA
    bf6a295 View commit details

Commits on May 22, 2023

  1. Update README.md

    MatanYadaev authored May 22, 2023
    Copy the full SHA
    3201150 View commit details
  2. Update README.md

    MatanYadaev authored May 22, 2023
    Copy the full SHA
    9aa9277 View commit details
Showing with 5,768 additions and 2,709 deletions.
  1. +1 −1 .editorconfig
  2. +38 −33 .github/workflows/pest-coverage.yml
  3. +80 −48 .github/workflows/pest.yml
  4. +0 −25 .github/workflows/php-cs-fixer.yml
  5. +24 −20 .github/workflows/phpstan.yml
  6. +29 −0 .github/workflows/pint.yml
  7. +20 −20 .github/workflows/update-changelog.yml
  8. +2 −0 .gitignore
  9. +0 −13 .php-cs-fixer.php
  10. +8 −7 .run/Fix formatting.run.xml
  11. +8 −7 .run/Static code analysis.run.xml
  12. +18 −0 .run/Test - MySQL.run.xml
  13. +17 −0 .run/Test - Postgres.run.xml
  14. +0 −11 .run/Test.run.xml
  15. +199 −113 API.md
  16. +210 −0 CHANGELOG.md
  17. +192 −89 README.md
  18. +57 −48 composer.json
  19. +42 −0 docker-compose.yaml
  20. +26 −16 phpstan.neon
  21. +29 −24 phpunit.xml
  22. +47 −0 src/AxisOrder.php
  23. +22 −0 src/Doctrine/GeographyType.php
  24. +22 −0 src/Doctrine/GeometryCollectionType.php
  25. +22 −0 src/Doctrine/GeometryType.php
  26. +22 −0 src/Doctrine/LineStringType.php
  27. +22 −0 src/Doctrine/MultiLineStringType.php
  28. +22 −0 src/Doctrine/MultiPointType.php
  29. +22 −0 src/Doctrine/MultiPolygonType.php
  30. +22 −0 src/Doctrine/PointType.php
  31. +22 −0 src/Doctrine/PolygonType.php
  32. +115 −0 src/EloquentSpatial.php
  33. +59 −0 src/EloquentSpatialServiceProvider.php
  34. +9 −0 src/Enums/Srid.php
  35. +42 −49 src/Factory.php
  36. +78 −64 src/GeometryCast.php
  37. +21 −0 src/GeometryExpression.php
  38. +23 −0 src/Helper.php
  39. +184 −153 src/Objects/Geometry.php
  40. +156 −154 src/Objects/GeometryCollection.php
  41. +14 −14 src/Objects/LineString.php
  42. +33 −33 src/Objects/MultiLineString.php
  43. +14 −14 src/Objects/MultiPoint.php
  44. +33 −33 src/Objects/MultiPolygon.php
  45. +36 −33 src/Objects/Point.php
  46. +12 −12 src/Objects/PointCollection.php
  47. +14 −14 src/Objects/Polygon.php
  48. +0 −273 src/SpatialBuilder.php
  49. +355 −0 src/Traits/HasSpatial.php
  50. +66 −0 tests/DoctrineTypesTest.php
  51. +20 −0 tests/Expectations.php
  52. +174 −61 tests/GeometryCastTest.php
  53. +479 −0 tests/HasSpatialTest.php
  54. +630 −287 tests/Objects/GeometryCollectionTest.php
  55. +211 −18 tests/Objects/GeometryTest.php
  56. +191 −86 tests/Objects/LineStringTest.php
  57. +227 −106 tests/Objects/MultiLineStringTest.php
  58. +170 −73 tests/Objects/MultiPointTest.php
  59. +332 −171 tests/Objects/MultiPolygonTest.php
  60. +186 −44 tests/Objects/PointTest.php
  61. +289 −144 tests/Objects/PolygonTest.php
  62. +3 −0 tests/Pest.php
  63. +0 −300 tests/SpatialBuilderTest.php
  64. +43 −17 tests/TestCase.php
  65. +25 −0 tests/TestFactories/TestExtendedPlaceFactory.php
  66. +11 −11 tests/TestFactories/TestPlaceFactory.php
  67. +47 −0 tests/TestModels/TestExtendedPlace.php
  68. +36 −39 tests/TestModels/TestPlace.php
  69. +7 −0 tests/TestObjects/ExtendedGeometryCollection.php
  70. +7 −0 tests/TestObjects/ExtendedLineString.php
  71. +7 −0 tests/TestObjects/ExtendedMultiLineString.php
  72. +7 −0 tests/TestObjects/ExtendedMultiPoint.php
  73. +7 −0 tests/TestObjects/ExtendedMultiPolygon.php
  74. +7 −0 tests/TestObjects/ExtendedPoint.php
  75. +7 −0 tests/TestObjects/ExtendedPolygon.php
  76. +34 −0 tests/database/migrations-laravel-<=10/0000_00_00_000000_create_test_extended_places_table.php
  77. +35 −0 tests/database/migrations-laravel-<=10/0000_00_00_000000_create_test_places_table.php
  78. +33 −0 tests/database/migrations-laravel->=11/0000_00_00_000000_create_test_extended_places_table.php
  79. +34 −0 tests/database/migrations-laravel->=11/0000_00_00_000000_create_test_places_table.php
  80. +0 −31 tests/database/migrations/0000_00_00_000000_create_test_places_table.php
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ root = true

[*]
charset = utf-8
indent_size = 2
indent_size = 4
indent_style = space
end_of_line = lf
insert_final_newline = true
71 changes: 38 additions & 33 deletions .github/workflows/pest-coverage.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,42 @@
name: Tests coverage

on: [ push, pull_request ]
on:
push:
branches:
- master
pull_request:

jobs:
test:
name: Pest - coverage

runs-on: ubuntu-latest

services:
mysql:
image: mysql:8.0
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: laravel_eloquent_spatial_test
ports:
- 3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
coverage: xdebug

- name: Install dependencies
run: composer install --prefer-dist --no-interaction

- name: Execute tests
env:
DB_PORT: ${{ job.services.mysql.ports['3306'] }}
run: XDEBUG_MODE=coverage ./vendor/bin/pest --coverage --min=100
test:
name: Pest - coverage

runs-on: ubuntu-latest

services:
db:
image: mysql:8.0
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: laravel_eloquent_spatial_test
ports:
- 3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
coverage: xdebug

- name: Install dependencies
run: composer install --prefer-dist --no-interaction

- name: Execute tests
env:
DB_PORT: ${{ job.services.db.ports['3306'] }}
DB_CONNECTION: mysql
run: XDEBUG_MODE=coverage ./vendor/bin/pest --coverage --min=100
128 changes: 80 additions & 48 deletions .github/workflows/pest.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,84 @@
name: Tests

on: [ push, pull_request ]
on:
push:
branches:
- master
pull_request:

jobs:
test:
name: Pest - PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.dependency-version }}

runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [ 8.1, 8.0 ]
laravel: [ 9.*, 8.* ]
# dependency-version: [prefer-lowest, prefer-stable]
dependency-version: [ prefer-stable ]
include:
- laravel: 8.*
testbench: ^6.23
- laravel: 9.*
testbench: 7.*

services:
mysql:
image: mysql:8.0
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: laravel_eloquent_spatial_test
ports:
- 3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Execute tests
env:
DB_PORT: ${{ job.services.mysql.ports['3306'] }}
run: vendor/bin/pest
test:
name: Pest - PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - DB ${{ matrix.db }} ${{ matrix.dependency-version }}

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php: [ 8.4, 8.3, 8.2, 8.1 ]
laravel: [ 12.*, 11.*, 10.* ]
db: [ 'mysql:8.0', 'mysql:5.7', 'mariadb:10.11', 'postgis/postgis:16-3.4', 'postgis/postgis:15-3.4', 'postgis/postgis:14-3.4', 'postgis/postgis:13-3.4', 'postgis/postgis:12-3.4' ]
dependency-version: [ prefer-stable ]
include:
- laravel: 10.*
testbench: ^8.0
- laravel: 11.*
testbench: ^9.0
- laravel: 12.*
testbench: ^10.0
exclude:
- laravel: 11.*
php: 8.1
- laravel: 12.*
php: 8.1

services:
db:
image: ${{ matrix.db }}
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: laravel_eloquent_spatial_test
POSTGRES_DB: laravel_eloquent_spatial_test
POSTGRES_USER: root
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- ${{ contains(matrix.db, 'postgis') && '5432' || '3306' }}
options: >-
${{ (contains(matrix.db, 'postgis') && '--health-cmd="pg_isready"') || '--health-cmd="mysqladmin ping"' }}
--health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Set DB_CONNECTION env variable (PostGIS)
if: contains(matrix.db, 'postgis')
run: |
echo "DB_CONNECTION=pgsql" >> "$GITHUB_ENV"
- name: Set DB_CONNECTION env variable (MariaDB & Laravel 11)
if: contains(matrix.laravel, '11') && contains(matrix.db, 'mariadb')
run: |
echo "DB_CONNECTION=mariadb" >> "$GITHUB_ENV"
- name: Set DB_COLLATION env variable (Mysql 5.7 & Laravel 11)
if: contains(matrix.laravel, '11') && contains(matrix.db, 'mysql:5.7')
run: |
echo "DB_COLLATION=utf8mb4_unicode_ci" >> "$GITHUB_ENV"
- name: Execute tests
env:
DB_PORT: ${{ job.services.db.ports[contains(matrix.db, 'postgis') && '5432' || '3306'] }}
DB_CONNECTION: ${{ env.DB_CONNECTION || 'mysql' }}
run: vendor/bin/pest
25 changes: 0 additions & 25 deletions .github/workflows/php-cs-fixer.yml

This file was deleted.

44 changes: 24 additions & 20 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,34 @@
name: Static code analysis

on: [ push, pull_request ]
on:
push:
branches:
- master
pull_request:

jobs:
phpstan:
name: PHPStan
phpstan:
name: PHPStan

runs-on: ubuntu-latest
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [ 8.1, 8.0 ]
strategy:
fail-fast: false
matrix:
php: [ 8.4, 8.3 ]

steps:
- name: Checkout code
uses: actions/checkout@v2
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none

- name: Install dependencies
run: composer install --prefer-dist --no-interaction
- name: Install dependencies
run: composer install --prefer-dist --no-interaction

- name: Run PHPStan
run: ./vendor/bin/phpstan analyse --memory-limit=2G --error-format=github
- name: Run PHPStan
run: ./vendor/bin/phpstan analyse --memory-limit=2G --error-format=github
29 changes: 29 additions & 0 deletions .github/workflows/pint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Lint

on:
push:
branches:
- master
pull_request:

jobs:
php-cs-fixer:
name: Pint

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
coverage: none

- name: Install dependencies
run: composer install --prefer-dist --no-interaction

- name: Run PHP CS Fixer
run: ./vendor/bin/pint --test
40 changes: 20 additions & 20 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
name: Update Changelog

on:
release:
types: [ released ]
release:
types: [ released ]

jobs:
update:
runs-on: ubuntu-latest
update:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: master
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: master

- name: Update Changelog
uses: stefanzweifel/changelog-updater-action@v1
with:
latest-version: ${{ github.event.release.name }}
release-notes: ${{ github.event.release.body }}
- name: Update Changelog
uses: stefanzweifel/changelog-updater-action@v1
with:
latest-version: ${{ github.event.release.name }}
release-notes: ${{ github.event.release.body }}

- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: master
commit_message: Update CHANGELOG
file_pattern: CHANGELOG.md
- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: master
commit_message: Update CHANGELOG
file_pattern: CHANGELOG.md
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
.idea
.php-cs-fixer.cache
.phpunit.cache
.phpunit.result.cache
build
composer.lock
coverage
vendor
.vscode
Loading