Skip to content

Commit a76b5a4

Browse files
committed
final tweaks before testing
1 parent af17c6f commit a76b5a4

17 files changed

+186
-166
lines changed

.gitattributes

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,18 @@
1010
/.package-lock.json export-ignore
1111
/.editorconfig export-ignore
1212
/.php_cs.dist.php export-ignore
13-
/phpunit.xml.dist export-ignore
13+
/.vscode export-ignore
1414
/art export-ignore
1515
/docs export-ignore
16+
/images export-ignore
1617
/tests export-ignore
18+
/package.json export-ignore
19+
/phpstan-baseline.neon export-ignore
20+
/phpstan.neon.dist export-ignore
21+
/postcss.config.js export-ignore
22+
/phpunit.xml.dist export-ignore
1723
/psalm.xml export-ignore
1824
/psalm.xml.dist export-ignore
25+
/tailwind.config.js export-ignore
1926
/testbench.yaml export-ignore
2027
/UPGRADING.md export-ignore
21-
/phpstan.neon.dist export-ignore
22-
/phpstan-baseline.neon export-ignore
23-
/images export-ignore
24-
/package.json export-ignore
25-
/postcss.config.js export-ignore
26-
/tailwind.config.js export-ignore

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Please be considerate towards maintainers when raising issues or presenting pull
1414
world that developers are civilized and selfless people.
1515

1616
It's the duty of the maintainer to ensure that all submissions to the project are of sufficient
17-
quality to benefit the project. Many developers have different skillsets, strengths, and weaknesses. Respect the maintainer's decision, and do not be upset or abusive if your submission is not used.
17+
quality to benefit the project. Many developers have different skills, strengths, and weaknesses. Respect the maintainer's decision, and do not be upset or abusive if your submission is not used.
1818

1919
## Viability
2020

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Bug Report
2+
description: Report an Issue or Bug with the Package
3+
title: "[Bug]: "
4+
labels: ["bug"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
We're sorry to hear you have a problem. Can you help us solve it by providing the following details.
10+
- type: textarea
11+
id: what-happened
12+
attributes:
13+
label: What happened?
14+
description: What did you expect to happen?
15+
placeholder: I cannot currently do X thing because when I do, it breaks X thing.
16+
validations:
17+
required: true
18+
- type: textarea
19+
id: how-to-reproduce
20+
attributes:
21+
label: How to reproduce the bug
22+
description: How did this occur, please add any config values used and provide a set of reliable steps if possible.
23+
placeholder: When I do X I see Y.
24+
validations:
25+
required: true
26+
- type: input
27+
id: package-version
28+
attributes:
29+
label: Package Version
30+
description: What version of our Package are you running? Please be as specific as possible
31+
placeholder: 2.0.0
32+
validations:
33+
required: true
34+
- type: input
35+
id: php-version
36+
attributes:
37+
label: PHP Version
38+
description: What version of PHP are you running? Please be as specific as possible
39+
placeholder: 8.2.0
40+
validations:
41+
required: true
42+
- type: input
43+
id: laravel-version
44+
attributes:
45+
label: Laravel Version
46+
description: What version of Laravel are you running? Please be as specific as possible
47+
placeholder: 9.0.0
48+
validations:
49+
required: true
50+
- type: dropdown
51+
id: operating-systems
52+
attributes:
53+
label: Which operating systems does with happen with?
54+
description: You may select more than one.
55+
multiple: true
56+
options:
57+
- macOS
58+
- Windows
59+
- Linux
60+
- type: textarea
61+
id: notes
62+
attributes:
63+
label: Notes
64+
description: Use this field to provide any other notes that you feel might be relevant to the issue.
65+
validations:
66+
required: false

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,3 @@ contact_links:
99
- name: Report a security issue
1010
url: https://github.com/:vendor_name/:package_name/security/policy
1111
about: Learn how to notify us for sensitive bugs
12-
- name: Report a bug
13-
url: https://github.com/:vendor_name/:package_name/issues/new
14-
about: Report a reproducible bug

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Dependabot Auto Merge
1+
name: "Dependabot Auto-Merge"
22

33
on: pull_request_target
44

@@ -14,7 +14,7 @@ jobs:
1414

1515
- name: Dependabot metadata
1616
id: metadata
17-
uses: dependabot/fetch-metadata@v1.4.0
17+
uses: dependabot/fetch-metadata@v1.6.0
1818
with:
1919
github-token: "${{ secrets.GITHUB_TOKEN }}"
2020

.github/workflows/fix-php-code-styling.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
name: Fix PHP Code Styling
1+
name: "Fix PHP Code Styling"
22

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

511
jobs:
612
php-code-styling:

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
uses: ramsey/composer-install@v2
2424

2525
- name: Run PHPStan
26-
run: ./vendor/bin/phpstan --error-format=github
26+
run: ./vendor/bin/phpstan --error-format=github

.github/workflows/run-tests.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
name: Run Tests
1+
name: run-tests
22

33
on:
44
push:
5+
branches: [main]
56
pull_request:
7+
branches: [main]
68

79
jobs:
810
test:
@@ -12,13 +14,12 @@ jobs:
1214
matrix:
1315
os: [ubuntu-latest, windows-latest]
1416
php: [8.2, 8.1]
15-
laravel: [10.*, 9.*]
16-
stability: [prefer-stable]
17+
laravel: [10.*]
18+
stability: [prefer-lowest, prefer-stable]
1719
include:
1820
- laravel: 10.*
1921
testbench: 8.*
20-
- laravel: 9.*
21-
testbench: 7.*
22+
carbon: ^2.63
2223

2324
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2425

@@ -40,8 +41,11 @@ jobs:
4041
4142
- name: Install dependencies
4243
run: |
43-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
44+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update
4445
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
4546
47+
- name: List Installed Dependencies
48+
run: composer show -D
49+
4650
- name: Execute tests
47-
run: ./vendor/bin/pest --verbose
51+
run: vendor/bin/pest --ci

.github/workflows/update-changelog.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
1-
name: Update Changelog
1+
name: "Update Changelog"
22

33
on:
44
release:
55
types: [released]
66

7+
permissions:
8+
contents: write
9+
710
jobs:
811
update:
912
runs-on: ubuntu-latest
1013

1114
steps:
1215
- name: Checkout code
1316
uses: actions/checkout@v3
17+
with:
18+
ref: main
1419

1520
- name: Update Changelog
1621
uses: stefanzweifel/changelog-updater-action@v1
@@ -21,5 +26,6 @@ jobs:
2126
- name: Commit updated CHANGELOG
2227
uses: stefanzweifel/git-auto-commit-action@v4
2328
with:
29+
branch: main
2430
commit_message: Update CHANGELOG
2531
file_pattern: CHANGELOG.md

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1+
.DS_Store
12
.idea
23
.phpunit.result.cache
3-
.DS_Store
4+
.vscode
45
build
56
composer.lock
67
coverage
78
docs
9+
node_modules
810
phpunit.xml
911
phpstan.neon
1012
testbench.yaml
1113
vendor
12-
node_modules

0 commit comments

Comments
 (0)