Skip to content

Commit 624cdfb

Browse files
committed
WIP
1 parent a1ec793 commit 624cdfb

8 files changed

+91
-43
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,45 @@
11
name: Bug Report
22
description: Report an Issue or Bug with the Package
33
title: "[Bug]: "
4-
labels: ["bug"]
4+
labels: [ "bug" ]
55
body:
66
- type: markdown
77
attributes:
8-
value: |
9-
We're sorry to hear you have a problem. Can you help us solve it by providing the following details.
8+
value: "|
9+
We're sorry to hear you have a problem. Can you help us solve it by providing the following details."
1010
- type: textarea
1111
id: what-happened
1212
attributes:
1313
label: What happened?
1414
description: What did you expect to happen?
15-
placeholder: I cannot currently do X thing because when I do, it breaks X thing.
15+
placeholder: "I cannot currently do X thing because when I do, it breaks X thing."
1616
validations:
1717
required: true
1818
- type: input
1919
id: package-version
2020
attributes:
2121
label: Package Version
2222
description: What version of our Package are you running? Please be as specific as possible
23-
placeholder: 1.0.0
23+
placeholder: "12.0"
24+
value: "12.0"
2425
validations:
2526
required: true
2627
- type: input
2728
id: php-version
2829
attributes:
2930
label: PHP Version
3031
description: What version of PHP are you running? Please be as specific as possible
31-
placeholder: 8.3.0
32+
placeholder: "8.4.0"
33+
value: "8.4.0"
3234
validations:
3335
required: true
3436
- type: input
3537
id: laravel-version
3638
attributes:
3739
label: Laravel Version
3840
description: What version of Laravel are you running? Please be as specific as possible
39-
placeholder: 11.0.0
41+
placeholder: "12.0.0"
42+
value: "12.0.0"
4043
validations:
4144
required: true
4245
- type: dropdown

.github/workflows/dependabot-auto-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
- name: Dependabot metadata
1515
id: metadata
16-
uses: dependabot/fetch-metadata@v2.2.0
16+
uses: dependabot/fetch-metadata@v2.3.0
1717
with:
1818
github-token: "${{ secrets.GITHUB_TOKEN }}"
1919

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Dependency Review Action
2+
#
3+
# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging.
4+
#
5+
# Source repository: https://github.com/actions/dependency-review-action
6+
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
7+
name: 'Dependency Review'
8+
on: [pull_request]
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
dependency-review:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: 'Checkout Repository'
18+
uses: actions/checkout@v4
19+
- name: 'Dependency Review'
20+
uses: actions/dependency-review-action@v4

.github/workflows/fix-php-code-style-issues.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
name: Fix PHP code style issues
22

3-
on:
4-
push:
5-
paths:
6-
- '**.php'
7-
8-
permissions:
9-
contents: write
3+
on: [push]
104

115
jobs:
126
php-code-styling:
@@ -19,7 +13,7 @@ jobs:
1913
ref: ${{ github.head_ref }}
2014

2115
- name: Fix PHP code style issues
22-
uses: aglipanci/laravel-pint-action@2.4
16+
uses: aglipanci/laravel-pint-action@2.5
2317

2418
- name: Commit changes
2519
uses: stefanzweifel/git-auto-commit-action@v5

.github/workflows/phpstan.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: PHPStan
22

33
on:
44
push:
5-
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
5+
paths:
6+
- '**.php'
7+
- 'phpstan.neon.dist'
88

99
jobs:
1010
phpstan:
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: '8.2'
19+
php-version: '8.4'
2020
coverage: none
2121

2222
- name: Install composer dependencies

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: release
2+
3+
on:
4+
pull_request:
5+
types:
6+
- closed
7+
branches:
8+
- main
9+
jobs:
10+
release:
11+
name: Release
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: '0'
17+
- name: Bump version and push tag
18+
uses: anothrNick/github-tag-action@master
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
21+
WITH_V: true
22+
RELEASE_BRANCHES: main
23+
DEFAULT_BUMP: minor

.github/workflows/run-tests.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ jobs:
1111
runs-on: ${{ matrix.os }}
1212
strategy:
1313
fail-fast: true
14+
max-parallel: 1
1415
matrix:
1516
os: [ ubuntu-latest ]
16-
php: [ 8.3 ]
17-
laravel: [ 11.* ]
18-
stability: [ prefer-stable ]
17+
php: [ 8.2, 8.3, 8.4 ]
18+
laravel: [ 12.* ]
19+
stability: [ prefer-lowest, prefer-stable ]
1920

2021
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2122

@@ -40,7 +41,7 @@ jobs:
4041
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
4142
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
4243
43-
- name: Set phpunit.xml
44+
- name: Execute tests
4445
run: cp phpunit.xml.dist phpunit.xml
4546

4647
- name: Execute tests
@@ -50,3 +51,9 @@ jobs:
5051
CLOUDINARY_API_KEY: ${{ secrets.CLOUDINARY_API_KEY }}
5152
CLOUDINARY_API_SECRET: ${{ secrets.CLOUDINARY_API_SECRET }}
5253

54+
- name: Store Log Artifacts
55+
if: failure()
56+
uses: actions/upload-artifact@v4
57+
with:
58+
name: Store report artifacts
59+
path: ./vendor/orchestra/testbench-core/laravel/storage/logs

composer.json

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,33 @@
1212
"license": "MIT",
1313
"authors": [
1414
{
15-
"name": "Sebastian Fix",
16-
"email": "sebastian.fix@codebar.ch",
15+
"name": "Sebastian Bürgin-Fix",
16+
"email": "sebastian.buergin@buergin.ch",
1717
"homepage": "https://www.codebar.ch",
18-
"role": "Software Engineer"
18+
"role": "Sofware-Engineer"
19+
},
20+
{
21+
"name": "Rhys Lees",
22+
"role": "Software-Engineer"
1923
}
2024
],
2125
"require": {
22-
"php": ">=8.2",
26+
"php": "8.2.*|8.3.*|8.4.*",
2327
"guzzlehttp/guzzle": "^7.8",
24-
"illuminate/contracts": "^11.0",
25-
"spatie/laravel-package-tools": "^1.16",
26-
"cloudinary/cloudinary_php": "^2.13",
27-
"nesbot/carbon": "^2.72"
28+
"illuminate/contracts": "^12.0",
29+
"cloudinary/cloudinary_php": "^3.1.0",
30+
"nesbot/carbon": "^3.8",
31+
"spatie/laravel-package-tools": "^1.19"
2832
},
2933
"require-dev": {
30-
"laravel/pint": "^1.14",
31-
"nunomaduro/collision": "^8.1",
32-
"larastan/larastan": "^2.9",
33-
"orchestra/testbench": "^9.0",
34-
"pestphp/pest": "^2.34",
35-
"pestphp/pest-plugin-arch": "^2.7",
36-
"pestphp/pest-plugin-laravel": "^2.3",
37-
"phpstan/extension-installer": "^1.3",
38-
"phpstan/phpstan-deprecation-rules": "^1.1",
39-
"phpstan/phpstan-phpunit": "^1.3",
40-
"spatie/laravel-ray": "^1.35"
34+
"laravel/pint": "^1.21",
35+
"larastan/larastan": "^v3.1",
36+
"orchestra/testbench": "^10.0",
37+
"pestphp/pest": "^3.7",
38+
"phpstan/extension-installer": "^1.4",
39+
"phpstan/phpstan-deprecation-rules": "^2.0",
40+
"phpstan/phpstan-phpunit": "^2.0",
41+
"spatie/laravel-ray": "^1.39"
4142
},
4243
"autoload": {
4344
"psr-4": {

0 commit comments

Comments
 (0)