Skip to content

Commit 4ec7626

Browse files
ADD laravel 9 support
1 parent 2e18f2b commit 4ec7626

File tree

6 files changed

+83
-21
lines changed

6 files changed

+83
-21
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: dependabot-auto-merge
2+
on: pull_request_target
3+
4+
permissions:
5+
pull-requests: write
6+
contents: write
7+
8+
jobs:
9+
dependabot:
10+
runs-on: ubuntu-latest
11+
if: ${{ github.actor == 'dependabot[bot]' }}
12+
steps:
13+
14+
- name: Dependabot metadata
15+
id: metadata
16+
uses: dependabot/[email protected]
17+
with:
18+
github-token: "${{ secrets.GITHUB_TOKEN }}"
19+
20+
- name: Auto-merge Dependabot PRs for semver-minor updates
21+
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor'}}
22+
run: gh pr merge --auto --merge "$PR_URL"
23+
env:
24+
PR_URL: ${{github.event.pull_request.html_url}}
25+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
26+
27+
- name: Auto-merge Dependabot PRs for semver-patch updates
28+
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
29+
run: gh pr merge --auto --merge "$PR_URL"
30+
env:
31+
PR_URL: ${{github.event.pull_request.html_url}}
32+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/psalm.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: '7.4'
19+
php-version: '8.0'
2020
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
2121
coverage: none
2222

.github/workflows/run-tests.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
name: run-tests
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
48

59
jobs:
610
test:
711
runs-on: ${{ matrix.os }}
812
strategy:
913
fail-fast: true
1014
matrix:
11-
os: [ubuntu-latest]
12-
php: [8.0, 7.4]
13-
laravel: [8.*, 7.*]
15+
os: [ubuntu-latest, windows-latest]
16+
php: [8.1, 8.0]
17+
laravel: [9.*]
1418
stability: [prefer-lowest, prefer-stable]
1519
include:
16-
- laravel: 8.*
17-
testbench: 6.*
18-
- laravel: 7.*
19-
testbench: 5.*
20+
- laravel: 9.*
21+
testbench: 7.*
2022

2123
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2224

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "Update Changelog"
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
jobs:
8+
update:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
with:
15+
ref: master
16+
17+
- name: Update Changelog
18+
uses: stefanzweifel/changelog-updater-action@v1
19+
with:
20+
latest-version: ${{ github.event.release.name }}
21+
release-notes: ${{ github.event.release.body }}
22+
23+
- name: Commit updated CHANGELOG
24+
uses: stefanzweifel/git-auto-commit-action@v4
25+
with:
26+
branch: master
27+
commit_message: Update CHANGELOG
28+
file_pattern: CHANGELOG.md

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2021 MAIZE SRL <[email protected]>
3+
Copyright (c) 2022 MAIZE SRL <[email protected]>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

composer.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@
2222
}
2323
],
2424
"require": {
25-
"php": "^7.4|^8.0",
25+
"php": "^8.0",
2626
"ext-openssl": "*",
27-
"illuminate/contracts": "^7.0|^8.0",
28-
"illuminate/database": "^7.0|^8.0",
29-
"illuminate/support": "^7.0|^8.0",
30-
"illuminate/validation": "^7.0|^8.0",
31-
"spatie/laravel-package-tools": "^1.1"
27+
"illuminate/contracts": "^9.0",
28+
"illuminate/database": "^9.0",
29+
"illuminate/support": "^9.0",
30+
"illuminate/validation": "^9.0",
31+
"spatie/laravel-package-tools": "^1.9.2"
3232
},
3333
"require-dev": {
34-
"friendsofphp/php-cs-fixer": "^2.18",
35-
"orchestra/testbench": "^5.0|^6.0",
36-
"phpunit/phpunit": "^9.3",
37-
"spatie/laravel-ray": "^1.12",
38-
"vimeo/psalm": "^4.4"
34+
"friendsofphp/php-cs-fixer": "^3.4",
35+
"orchestra/testbench": "^7.0",
36+
"phpunit/phpunit": "^9.5",
37+
"spatie/laravel-ray": "^1.26",
38+
"vimeo/psalm": "^4.20"
3939
},
4040
"autoload": {
4141
"psr-4": {

0 commit comments

Comments
 (0)