Skip to content

Commit ecea93e

Browse files
committed
🐛 add github action to run grumphp
1 parent edb4022 commit ecea93e

File tree

4 files changed

+1986
-1135
lines changed

4 files changed

+1986
-1135
lines changed

.github/workflows/tasks.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Tasks
2+
3+
on:
4+
push:
5+
branches: "*"
6+
schedule:
7+
- cron: '0 0 * * *'
8+
9+
jobs:
10+
lint-php:
11+
name: "php: ${{ matrix.php }} ${{ matrix.prefer-lowest }}"
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
php: [ '8.1', '8.2', '8.3' ]
17+
prefer-lowest: ['--prefer-lowest', '']
18+
steps:
19+
- name: Setup PHP with PECL extension
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: ${{ matrix.php }}
23+
- uses: actions/checkout@v2
24+
- name: Get Composer Cache Directory
25+
id: composer-cache
26+
run: |
27+
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
28+
- uses: actions/cache@v3
29+
with:
30+
path: ${{ steps.composer-cache.outputs.dir }}
31+
key: ${{ runner.os }}-${{ matrix.php }}-${{ matrix.prefer-lowest }}-composer-${{ hashFiles('**/composer.lock') }}
32+
restore-keys: |
33+
${{ runner.os }}-${{ matrix.php }}-${{ matrix.prefer-lowest }}-composer
34+
- run: composer update ${{ matrix.prefer-lowest }} --no-interaction --no-progress
35+
- run: ./vendor/bin/grumphp run --ansi

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ you will get asked for each file that has changes if you want to apply them.
1717
[![asciicast](https://asciinema.org/a/671145.png)](https://asciinema.org/a/671145)
1818

1919

20-
2120
# with ♥️ from anders und sehr GmbH
2221

2322
> If something did not work 😮

composer.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111
],
1212
"require": {
1313
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
14-
"rector/rector": "^1.2",
15-
"symfony/console": "^7.1"
14+
"rector/rector": "^1.2.2",
15+
"symfony/console": "^6.4 || ^7.1"
1616
},
1717
"require-dev": {
18-
"pluswerk/grumphp-config": "^7.0"
18+
"pluswerk/grumphp-config": "^7.0.4",
19+
"roave/security-advisories": "dev-latest"
1920
},
2021
"autoload": {
2122
"psr-4": {

0 commit comments

Comments
 (0)