Skip to content

Commit 3f578b1

Browse files
committed
actions: Update workflows
1 parent d668799 commit 3f578b1

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

.github/workflows/php.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
20+
php: ['8.2', '8.3', '8.4']
2121
os: ['ubuntu-latest']
2222

2323
steps:
2424
- name: Checkout code base
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v5
2626

2727
- name: Setup PHP
2828
uses: shivammathur/setup-php@v2
@@ -41,10 +41,6 @@ jobs:
4141
if: ${{ ! cancelled() }}
4242
run: phpcs -wps --colors
4343

44-
- name: PHPStan
45-
if: ${{ ! cancelled() }}
46-
uses: php-actions/phpstan@v3
47-
4844
test:
4945
name: Unit tests with php ${{ matrix.php }} on ${{ matrix.os }}
5046
runs-on: ${{ matrix.os }}
@@ -55,12 +51,12 @@ jobs:
5551
strategy:
5652
fail-fast: false
5753
matrix:
58-
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
54+
php: ['8.2', '8.3', '8.4']
5955
os: ['ubuntu-latest']
6056

6157
steps:
6258
- name: Checkout code base
63-
uses: actions/checkout@v3
59+
uses: actions/checkout@v5
6460

6561
- name: Setup PHP
6662
uses: shivammathur/setup-php@v2

.github/workflows/phpstan.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: PHPStan
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
phpstan:
10+
uses: icinga/github-actions/.github/workflows/phpstan.yml@main
11+
with:
12+
dependencies: |
13+
{
14+
"/icingaweb2": "https://github.com/Icinga/icingaweb2.git"
15+
}

0 commit comments

Comments
 (0)