-
Notifications
You must be signed in to change notification settings - Fork 12
42 lines (35 loc) · 888 Bytes
/
ci.yml
File metadata and controls
42 lines (35 loc) · 888 Bytes
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
name: ci
on:
pull_request:
push:
branches: [ master ]
jobs:
ci:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_PASSWORD: password
POSTGRES_USER: "root"
POSTGRES_DB: "app"
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
- name: "Installing PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.3"
ini-values: memory_limit=-1
- name: "Install composer dependencies"
uses: "ramsey/composer-install@v2"
- name: "Run ci script"
run: "composer ci"
env:
DATABASE_URL: postgresql://root:password@localhost/app?serverVersion=16&charset=utf8