File tree Expand file tree Collapse file tree 1 file changed +64
-0
lines changed Expand file tree Collapse file tree 1 file changed +64
-0
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ pull_request :
3
+ push :
4
+ branches : [ 'master' ]
5
+
6
+ name : MySQL build
7
+
8
+ jobs :
9
+ tests :
10
+ name : PHP ${{ matrix.php }}-${{ matrix.os }}
11
+
12
+ env :
13
+ key : cache-v1
14
+
15
+ runs-on : ${{ matrix.os }}
16
+
17
+ strategy :
18
+ matrix :
19
+ os :
20
+ - ubuntu-latest
21
+
22
+ php :
23
+ - " 8.0"
24
+ - " 8.1"
25
+ - " 8.2"
26
+ - " 8.3"
27
+
28
+ pgsql :
29
+ - 16
30
+
31
+ services :
32
+ postgres :
33
+ image : postgres:${{ matrix.pgsql }}
34
+ env :
35
+ POSTGRES_USER : root
36
+ POSTGRES_PASSWORD : root
37
+ POSTGRES_DB : db_test
38
+ ports :
39
+ - 5432:5432
40
+ options : --name=postgres --health-cmd="pg_isready" --health-interval=10s --health-timeout=5s --health-retries=3
41
+
42
+ steps :
43
+ - name : Checkout
44
+ uses : actions/checkout@v3
45
+
46
+ - name : Install PHP
47
+ uses : shivammathur/setup-php@v2
48
+ with :
49
+ php-version : ${{ matrix.php }}
50
+ ini-values : date.timezone='UTC'
51
+ coverage : pcov
52
+ tools : composer:v2
53
+
54
+ - name : Install Composer dependencies
55
+ uses : ramsey/composer-install@v3
56
+
57
+ - name : Run unit tests
58
+ run : vendor/bin/codecept run Unit
59
+
60
+ - name : Run integration tests
61
+ run : vendor/bin/codecept run PgSqlIntegration
62
+
63
+ - name : Run preload tests
64
+ run : vendor/bin/codecept run PgSqlPreload
You can’t perform that action at this time.
0 commit comments