Skip to content

Commit cc8f29d

Browse files
authored
Merge pull request #19 from patchlevel/housekeeping
2 parents de8f6d9 + 3c2825c commit cc8f29d

12 files changed

Lines changed: 366 additions & 642 deletions

.github/workflows/coding-standard.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
dependencies:
2121
- "locked"
2222
php-version:
23-
- "8.4"
23+
- "8.5"
2424
operating-system:
2525
- "ubuntu-latest"
2626

@@ -31,10 +31,8 @@ jobs:
3131
- name: "Install PHP"
3232
uses: "shivammathur/[email protected]"
3333
with:
34-
coverage: "pcov"
3534
php-version: "${{ matrix.php-version }}"
3635
ini-values: memory_limit=-1
37-
extensions: pdo_sqlite
3836

3937
- uses: ramsey/[email protected]
4038
with:
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Notify new release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
env:
8+
NOTIFY_MESSAGE: |
9+
We released ${{ github.event.release.tag_name }} of ${{ github.event.repository.name }}! See here for the changelog: ${{ github.event.release.html_url }}
10+
#PHP #DDD #EventSourcing #PHPStan
11+
12+
jobs:
13+
twitter:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: eomm/why-don-t-you-tweet@v2
17+
if: ${{ !github.event.repository.private }}
18+
with:
19+
# GitHub event payload
20+
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release
21+
tweet-message: ${{ env.NOTIFY_MESSAGE }}
22+
env:
23+
TWITTER_CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
24+
TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
25+
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
26+
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
27+
28+
mastodon:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: cbrgm/mastodon-github-action@v2
32+
if: ${{ !github.event.repository.private }}
33+
with:
34+
message: ${{ env.NOTIFY_MESSAGE }}
35+
access-token: ${{ secrets.MASTODON_ACCESS_TOKEN }}
36+
url: ${{ secrets.MASTODON_URL }}

.github/workflows/phpstan.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
dependencies:
2121
- "locked"
2222
php-version:
23-
- "8.4"
23+
- "8.5"
2424
operating-system:
2525
- "ubuntu-latest"
2626

@@ -31,10 +31,8 @@ jobs:
3131
- name: "Install PHP"
3232
uses: "shivammathur/[email protected]"
3333
with:
34-
coverage: none
3534
php-version: "${{ matrix.php-version }}"
3635
ini-values: memory_limit=-1, opcache.enable_cli=1
37-
extensions: pdo_sqlite
3836

3937
- uses: ramsey/[email protected]
4038
with:

composer.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,14 @@
1919
}
2020
],
2121
"require": {
22-
"php": "~8.1 || ~8.2 || ~8.3 || 8.4",
22+
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0",
2323
"phpstan/phpstan": "^2.1.20"
2424
},
2525
"require-dev": {
2626
"patchlevel/coding-standard": "^1.3.0",
27-
"patchlevel/event-sourcing": "dev-DCB",
27+
"patchlevel/event-sourcing": "^3.4.0",
2828
"phpstan/phpstan-strict-rules": "^2.0.4",
29-
"roave/security-advisories": "dev-master",
30-
"symfony/var-dumper": "^7.0.0"
29+
"roave/security-advisories": "dev-master"
3130
},
3231
"config": {
3332
"preferred-install": {

0 commit comments

Comments
 (0)