forked from ReimuHakurei/phpPgAdmin
-
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (48 loc) · 1.59 KB
/
php.yml
File metadata and controls
56 lines (48 loc) · 1.59 KB
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
name: PHP
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ '8.2', '8.3', '8.4', '8.5' ]
pg-version: [ '17' ]
services:
postgres:
image: postgres:${{ matrix.pg-version }}
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
name: PHP ${{ matrix.php-version }}
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: '22'
- uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2.36.0
with:
php-version: ${{ matrix.php-version }}
extensions: intl, pdo_pgsql, xdebug, zip
coverage: xdebug
ini-values: xdebug.mode=coverage,error_reporting=E_ALL,display_errors=On
- run: composer validate --strict
- run: composer install --prefer-dist --no-progress
- run: composer run-script dev:lint:php
- run: composer run-script dev:lint:phpcs
- run: composer run-script dev:analyze:phpstan-${{ matrix.php-version }}
- run: composer run-script dev:test:unit
env:
PHPPGADMIN_TEST_SERVER_HOSTNAME: localhost
PHPPGADMIN_TEST_SERVER_PASSWORD: ${{ vars.PHPPGADMIN_TEST_SERVER_PASSWORD }}