Skip to content

Commit e5433d8

Browse files
committed
chore: update alchemy
1 parent d9fa5aa commit e5433d8

6 files changed

Lines changed: 70 additions & 45 deletions

File tree

‎.github/workflows/lint.yml‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Generated by Leaf Alchemy from alchemy.yml — edits will be overwritten on the next alchemy run.
2+
# Remove this header to take ownership of this file.
3+
name: Lint code
4+
5+
on: ["push","pull_request"]
6+
7+
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v7
14+
with:
15+
ref: ${{ github.head_ref }}
16+
17+
- name: Setup PHP
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: '8.4'
21+
extensions: json, zip
22+
tools: composer:v2
23+
coverage: none
24+
25+
- name: Install PHP dependencies
26+
run: composer update --no-interaction --no-progress
27+
28+
- name: Run Linter
29+
run: composer run lint -- --check

‎.github/workflows/php-cs-fixer.yml‎

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

‎.github/workflows/tests.yml‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Generated by Leaf Alchemy from alchemy.yml — edits will be overwritten on the next alchemy run.
2+
# Remove this header to take ownership of this file.
3+
name: Run Tests
4+
5+
on: ["push","pull_request"]
6+
7+
jobs:
8+
tests:
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
fail-fast: true
12+
matrix:
13+
os: ["ubuntu-latest"]
14+
php: ["8.2","8.3","8.4"]
15+
16+
name: PHP ${{ matrix.php }} - ${{ matrix.os }}
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v7
21+
22+
- name: Setup PHP
23+
uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: ${{ matrix.php }}
26+
extensions: json, zip
27+
tools: composer:v2
28+
coverage: none
29+
30+
- name: Install PHP dependencies
31+
run: composer update --no-interaction --no-progress
32+
33+
- name: Run Tests
34+
run: composer run test

‎alchemy.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ lint:
1818
actions:
1919
run:
2020
- lint
21+
- test
2122
os:
2223
- ubuntu-latest
2324
php:
2425
versions:
2526
- '8.2'
2627
- '8.3'
28+
- '8.4'
2729
events:
2830
- push
2931
- pull_request

‎composer.json‎

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,13 @@
3131
"minimum-stability": "dev",
3232
"prefer-stable": true,
3333
"require-dev": {
34-
"leafs/db": "*",
35-
"leafs/redis": "*",
34+
"leafs/db": "^5.0",
35+
"leafs/redis": "^5.0",
3636
"pestphp/pest": "*",
3737
"friendsofphp/php-cs-fixer": "*",
38-
"leafs/alchemy": "v5.x-dev"
38+
"leafs/alchemy": "^5.0"
3939
},
4040
"scripts": {
41-
"format": "vendor/bin/php-cs-fixer fix --config=.php_cs.dist.php --allow-risky=yes",
4241
"alchemy": "@php vendor/bin/alchemy all",
4342
"test": "@php vendor/bin/alchemy test",
4443
"lint": "@php vendor/bin/alchemy lint",
@@ -54,12 +53,7 @@
5453
},
5554
"require": {
5655
"php": "^8.2",
57-
"dragonmantank/cron-expression": "^3.4",
58-
"leafs/sprout": "*"
59-
},
60-
"extra": {
61-
"branch-alias": {
62-
"dev-v5.x": "5.0.x-dev"
63-
}
56+
"dragonmantank/cron-expression": "*",
57+
"leafs/sprout": "^5.0"
6458
}
6559
}

‎phpunit.xml‎

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

0 commit comments

Comments
 (0)