-
Notifications
You must be signed in to change notification settings - Fork 4
71 lines (67 loc) · 2.14 KB
/
run-grumphp-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: grumphp
on:
push:
branches: "*"
tags: "*"
schedule:
- cron: '0 0 * * *'
jobs:
test:
name: "php: ${{ matrix.php }} TYPO3: ${{ matrix.typo3 }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.2', '8.3', '8.4']
typo3: [false, true]
container:
image: kanti/buildy:${{ matrix.php }}
env:
COMPOSER_ROOT_VERSION: dev-main
steps:
- uses: actions/checkout@v4
- run: git config --global --add safe.directory /__w/grumphp-config/grumphp-config
- if: ${{ ! matrix.typo3 }}
run: |
composer install --no-progress --no-scripts -n \
&& mv phpstan-baseline-without-typo3.neon phpstan-baseline.neon
- if: ${{ matrix.typo3 }}
run: composer req saschaegerer/phpstan-typo3 ssch/typo3-rector --no-progress --no-scripts -n
- run: ./vendor/bin/grumphp run --ansi
test-packages:
name: "${{ matrix.package }} php: ${{ matrix.php }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
package: ['grumphp-bom-task', 'grumphp-xliff-task', 'phpstan-git-files', 'rector-p']
php: ['8.2', '8.3', '8.4']
container:
image: kanti/buildy:${{ matrix.php }}
env:
COMPOSER_ROOT_VERSION: dev-main
defaults:
run:
working-directory: ./packages/${{ matrix.package }}
steps:
- uses: actions/checkout@v4
- run: git config --global --add safe.directory /__w/grumphp-config/grumphp-config
- run: composer install --no-progress --no-scripts -n
- run: ./vendor/bin/grumphp run --ansi
code-split:
name: "Code Split ${{ matrix.package }}"
needs:
- test
- test-packages
if: ${{ ( startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' ) && github.event_name == 'push' }}
runs-on: ubuntu-latest
environment: code split
env:
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
strategy:
fail-fast: false
matrix:
package: ['grumphp-bom-task', 'grumphp-xliff-task', 'phpstan-git-files', 'rector-p']
steps:
- uses: actions/checkout@v4
- run: ./split.sh ${{ matrix.package }}