-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (59 loc) · 1.85 KB
/
test.yml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Tests
on:
push:
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
env:
DATABASE_URL: postgresql://eventpoint:[email protected]:5432/eventpoint?serverVersion=13&charset=utf8
services:
db:
image: postgres:13
env:
POSTGRES_USER: eventpoint
POSTGRES_PASSWORD: eventpoint
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
coverage: none # default is xdebug
extensions: mbstring, uuid # needed by phpunit
- run: composer install --dev --no-progress
- run: yarn install
- run: yarn run dev
- run: vendor/bin/phpunit
ecs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
coverage: none # default is xdebug
- run: composer install --dev --no-progress
- run: composer run-script check-cs
rector:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
coverage: none # default is xdebug
- run: composer install --dev --no-progress
- run: composer run-script rector-dry
phpstan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
coverage: none # default is xdebug
- run: composer install --dev --no-progress
- run: composer run-script ps