-
Notifications
You must be signed in to change notification settings - Fork 5
40 lines (31 loc) · 964 Bytes
/
test_postgres.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
name: Test on PostgreSQL
on: [ push ]
jobs:
build:
strategy:
fail-fast: false
matrix:
operating_system: ['ubuntu-22.04']
php_versions:
- '8.2'
runs-on: '${{ matrix.operating_system }}'
steps:
- uses: actions/checkout@v3
- uses: ikalnytskyi/action-setup-postgres@v4
with:
username: postgres
password: 12345
database: s2_rose_test
port: 5432
- name: 'Setup PHP'
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_versions }}
- name: Install dependencies
run: COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-dist --no-interaction
- name: Prepare config
run: cp tests/config.php.dist.postgres tests/config.php
- name: Run test cases
run: php bin/codecept run --skip-group profile
- name: Run profiling
run: php bin/codecept run -g profile -d