Skip to content

Commit 3017b7d

Browse files
committed
feat: update skeleton files
1 parent 6727b27 commit 3017b7d

19 files changed

Lines changed: 136 additions & 141 deletions

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ trim_trailing_whitespace = true
1414
[*.md]
1515
trim_trailing_whitespace = false
1616

17-
[*.{yml, yaml}]
17+
[*.{yml,yaml}]
1818
indent_size = 2

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/.gitattributes export-ignore
99
/.github export-ignore
1010
/.gitignore export-ignore
11-
/.styleci.yml export-ignore
11+
/CHANGELOG.md export-ignore
1212
/docs export-ignore
1313
/phpstan.neon.dist export-ignore
1414
/phpunit.xml.dist export-ignore

.github/CONTRIBUTING.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/feature-request.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/auto-release.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Auto-Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
resolve-version:
10+
name: Resolve
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
outputs:
15+
new-release-published: ${{ steps.get-next-version.outputs.new-release-published }}
16+
new-release-version: ${{ steps.get-next-version.outputs.new-release-version }}
17+
new-release-git-tag: ${{ steps.get-next-version.outputs.new-release-git-tag }}
18+
new-release-notes: ${{ steps.get-next-version.outputs.new-release-notes }}
19+
steps:
20+
21+
- name: Checkout
22+
uses: actions/checkout@v6
23+
with:
24+
fetch-depth: 0
25+
26+
- name: Setup Node.js
27+
uses: actions/setup-node@v6
28+
with:
29+
node-version: "lts/*"
30+
31+
- name: Install required dependencies
32+
run: npm install -g semantic-release @owenvoke/semantic-release-config
33+
34+
- name: Resolve version
35+
id: get-next-version
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
run: npx semantic-release -e @owenvoke/semantic-release-config --dry-run
39+
40+
release-draft:
41+
name: Draft
42+
runs-on: ubuntu-latest
43+
permissions:
44+
contents: write
45+
needs: [resolve-version]
46+
if: needs.resolve-version.outputs.new-release-published == 'true'
47+
steps:
48+
49+
- name: Checkout
50+
uses: actions/checkout@v6
51+
52+
- name: Remove old drafts releases
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
run: |
56+
gh api repos/{owner}/{repo}/releases \
57+
--jq '.[] | select(.draft == true) | .id' \
58+
| xargs -I '{}' gh api -X DELETE repos/{owner}/{repo}/releases/{}
59+
60+
- name: Create draft release
61+
uses: softprops/action-gh-release@v2
62+
with:
63+
tag_name: ${{ needs.resolve-version.outputs.new-release-git-tag }}
64+
draft: true
65+
prerelease: ${{ startsWith('v0.', needs.resolve-version.outputs.new-release-git-tag) || contains('-next', needs.resolve-version.outputs.new-release-git-tag) }}
66+
body: |
67+
${{ needs.resolve-version.outputs.new-release-notes }}

.github/workflows/static.yml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,47 +11,37 @@ jobs:
1111
steps:
1212

1313
- name: Checkout
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v6
1515

1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: 8.1
20-
extensions: zip
21-
tools: composer
19+
php-version: 8.4
2220
coverage: none
2321

24-
- name: Install PHP dependencies
25-
uses: ramsey/composer-install@v1
26-
with:
27-
dependency-versions: highest
28-
composer-options: "--prefer-dist"
22+
- name: Install Dependencies
23+
run: composer update --no-interaction --prefer-dist --no-progress --ansi
2924

3025
- name: Run Pint
3126
run: vendor/bin/pint --test --ansi
3227

3328
phpstan:
3429
runs-on: ubuntu-latest
3530

36-
strategy:
37-
matrix:
38-
dependency-version: [prefer-lowest, prefer-stable]
39-
40-
name: PHPStan (${{ matrix.dependency-version }})
31+
name: PHPStan
4132

4233
steps:
4334
- name: Checkout
44-
uses: actions/checkout@v3
35+
uses: actions/checkout@v6
4536

4637
- name: Setup PHP
4738
uses: shivammathur/setup-php@v2
4839
with:
49-
php-version: 8.1
50-
tools: composer
40+
php-version: 8.4
5141
coverage: none
5242

5343
- name: Install Dependencies
54-
run: composer update --${{ matrix.dependency-version }} --no-interaction --prefer-dist --no-progress --ansi
44+
run: composer update --no-interaction --prefer-dist --no-progress --ansi
5545

5646
- name: Run PHPStan
5747
run: vendor/bin/phpstan analyse --no-progress --ansi

.github/workflows/tests.yml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,31 @@ jobs:
88
strategy:
99
matrix:
1010
os: [ubuntu-latest, macos-latest, windows-latest]
11-
php: ['8.1']
11+
php: ['8.5', '8.4']
1212
dependency-version: [prefer-lowest, prefer-stable]
1313

1414
name: PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }}
1515

1616
steps:
17-
- name: Checkout
18-
uses: actions/checkout@v2
19-
20-
- name: Setup PHP
21-
uses: shivammathur/setup-php@v2
22-
with:
23-
php-version: ${{ matrix.php }}
24-
tools: composer
25-
extensions: fileinfo
26-
coverage: none
27-
28-
- name: Setup Problem Matches
29-
run: |
30-
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
31-
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
32-
33-
- name: Install PHP dependencies
34-
run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --ansi
35-
36-
- name: Unit Tests
37-
run: vendor/bin/pest --colors=always
17+
18+
- name: Checkout
19+
uses: actions/checkout@v6
20+
21+
- name: Setup PHP
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: ${{ matrix.php }}
25+
extensions: fileinfo
26+
tools: composer
27+
coverage: none
28+
29+
- name: Setup Problem Matches
30+
run: |
31+
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
32+
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
33+
34+
- name: Install PHP dependencies
35+
run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --ansi
36+
37+
- name: Unit Tests
38+
run: vendor/bin/pest --colors=always

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/build
22
/vendor
3-
/.phpunit.result.cache
3+
/.phpunit.cache
44
/.php-cs-fixer.cache
55
/composer.lock
66
/phpunit.xml

0 commit comments

Comments
 (0)