-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (38 loc) · 1.29 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
name: Codeception tests
on: [ push ]
jobs:
build:
name: ${{matrix.operating-system}}, PHP ${{ matrix.php }}
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ ubuntu-latest, ubuntu-22.04 ]
php: [ '8.0', '8.1','8.2','8.3','8.4' ]
services:
postgres:
image: postgres
env:
POSTGRES_DB: kodus_db_cache_test
POSTGRES_USER: root
POSTGRES_PASSWORD: root
ports:
- 5432:5432
mysql:
image: mysql
env:
MYSQL_DATABASE: kodus_db_cache_test
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
steps:
- uses: actions/checkout@master
- name: Setup PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php }}
- name: Install dependencies
run: composer install
- name: Sleep for 10 seconds - wait for MySQL to start
run: sleep 10
- name: Run tests
run: php vendor/bin/phpunit