-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (42 loc) · 1.08 KB
/
build_postgresql.yaml
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
name: Build and test [PostgreSQL 15.x]
on:
pull_request:
branches:
- 'main'
types: [ opened, synchronize, reopened, ready_for_review ]
push:
branches:
- 'main'
jobs:
build:
runs-on: ubuntu-latest
services:
postgresql:
image: postgres:15
env:
POSTGRES_DB: eloquentdocs
POSTGRES_USER: root
POSTGRES_PASSWORD: root
ports:
- 5432:5432
options: --health-cmd=pg_isready --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v3
if: success()
- name: Setup PHP with coverage driver
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: pdo, pdo_pgsql
coverage: none
- name: Setup
if: success()
run: |
php -v
composer install --no-interaction
touch coverage.xml
mv .env.postgresql .env
- name: PHPUnit tests
if: success()
run: |
composer test