Skip to content

Commit 785bd0a

Browse files
GitHub Actions: Use new PHP workflows
- Remove obsolete check for `release/*`
1 parent 60f1786 commit 785bd0a

2 files changed

Lines changed: 9 additions & 48 deletions

File tree

.github/workflows/php.yml

Lines changed: 9 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,19 @@
1-
name: PHP Tests
1+
name: CI
22

33
on:
44
push:
55
branches:
66
- main
7-
- release/*
87
pull_request:
98
branches:
109
- main
1110

1211
jobs:
13-
lint:
14-
name: Static analysis for php ${{ matrix.php }} on ${{ matrix.os }}
15-
runs-on: ${{ matrix.os }}
16-
17-
strategy:
18-
fail-fast: false
19-
matrix:
20-
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
21-
os: ['ubuntu-latest']
22-
23-
steps:
24-
- name: Checkout code base
25-
uses: actions/checkout@v4
26-
27-
- name: Setup PHP
28-
uses: shivammathur/setup-php@v2
29-
with:
30-
php-version: ${{ matrix.php }}
31-
tools: phpcs
32-
33-
- name: Setup dependencies
34-
run: composer require -n --no-progress overtrue/phplint
35-
36-
- name: PHP Lint
37-
if: ${{ ! cancelled() }}
38-
run: ./vendor/bin/phplint -n --exclude={^vendor/.*} -- .
39-
40-
- name: PHP CodeSniffer
41-
if: ${{ ! cancelled() }}
42-
run: phpcs -wps --colors
12+
php:
13+
name: PHP
14+
uses: Icinga/github-actions/.github/workflows/php.yml@main
15+
with:
16+
dependencies: |
17+
{
18+
"./vendor/icingaweb2-modules/icingadb" : "https://github.com/Icinga/icingadb-web.git"
19+
}

.github/workflows/phpstan.yml

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

0 commit comments

Comments
 (0)