Skip to content

Commit

Permalink
Merge pull request #17 from umutphp/16-laravel-10-support
Browse files Browse the repository at this point in the history
Add Laravel 10 support
  • Loading branch information
umutphp authored Aug 14, 2023
2 parents f5d5db1 + 24fcd3e commit 2e1a719
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 106 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/basic-checks.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Basic Checks
on: [push, pull_request]
on: [push]

jobs:
node-docker:
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/composer-install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Test In All PHP Versions

on:
pull_request:
branches: [master]

jobs:
phpunit:
name: PHPUnit
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php-version:
- "7.4"
- "8.0"
- "8.1"
- "8.2"
dependency-versions:
- "lowest"
- "highest"

steps:
- name: Checkout
uses: actions/checkout@v3

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

- name: Install composer dependencies
uses: ramsey/composer-install@v2
with:
dependency-versions: ${{ matrix.dependency-versions }}

- name: Run PHPUnit
run: vendor/bin/phpunit tests
31 changes: 15 additions & 16 deletions .github/workflows/mardown-lint.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
name: Markdown Linter

on: [push, pull_request]
on: [push]

jobs:
phpcs:
name: Lint MD Files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Lint README
uses: nosborn/github-action-markdown-cli@v1.1.1
with:
files: README.md
config_file: "./.github/markdown.config.json"
- name: Lint CONTRIBUTING
uses: nosborn/github-action-markdown-cli@v1.1.1
with:
files: ./.github/CONTRIBUTING.md
config_file: "./.github/markdown.config.json"

name: Lint MD Files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Lint README
uses: nosborn/github-action-markdown-cli@v1.1.1
with:
files: README.md
config_file: "./.github/markdown.config.json"
- name: Lint CONTRIBUTING
uses: nosborn/github-action-markdown-cli@v1.1.1
with:
files: ./.github/CONTRIBUTING.md
config_file: "./.github/markdown.config.json"
14 changes: 7 additions & 7 deletions .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Codestyle Check

on: [push, pull_request]
on: [push]

jobs:
phpcs:
name: PHPCS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: PHPCS check
uses: chekalsky/phpcs-action@v1
name: PHPCS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: PHPCS check
uses: chekalsky/phpcs-action@v1
39 changes: 0 additions & 39 deletions .github/workflows/tests-new-versions.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/tests-old-versions.yml

This file was deleted.

7 changes: 3 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,14 @@
],
"require": {
"php": "^7.4|^8.0|^8.1",
"illuminate/collections": "^9.0",
"illuminate/contracts": "^9.0",
"illuminate/collections": "^8.0|^9.0|^10.0",
"illuminate/contracts": "^8.0|^9.0|^10.0",
"spatie/laravel-package-tools": "^1.4.3"
},
"require-dev": {
"brianium/paratest": "^6.2",
"nunomaduro/collision": "^5.3",
"phpunit/phpunit": "^9.3",
"spatie/laravel-ray": "^1.9",
"squizlabs/php_codesniffer": "^3.6"
},
"autoload": {
Expand Down Expand Up @@ -55,4 +54,4 @@
},
"minimum-stability": "dev",
"prefer-stable": true
}
}

0 comments on commit 2e1a719

Please sign in to comment.