OSDN Git Service

Добавлен тест модели типов.
[invent/invent.git] / vendor / codeception / module-db / .github / workflows / main.yml
1 name: CI
2
3 on: [push, pull_request]
4
5 jobs:
6   tests:
7     runs-on: ubuntu-latest
8
9     services:
10       mysql:
11         image: mysql:5.7
12         env:
13             MYSQL_ALLOW_EMPTY_PASSWORD: true
14             MYSQL_DATABASE: codeception_test
15         ports:
16           - 3306:3306
17         options: >-
18           --health-cmd "mysqladmin ping"
19           --health-interval 10s
20           --health-timeout 5s
21           --health-retries 5
22       postgres:
23         image: postgres
24         env:
25           POSTGRES_PASSWORD: postgres
26           POSTGRES_DB: codeception_test
27         options: >-
28           --health-cmd pg_isready
29           --health-interval 10s
30           --health-timeout 5s
31           --health-retries 5
32         ports:
33           - 5432:5432
34
35     strategy:
36       matrix:
37         php: [5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0]
38
39     steps:
40     - name: Checkout code
41       uses: actions/checkout@v2
42
43     - name: Setup PHP
44       uses: shivammathur/setup-php@v2
45       with:
46         php-version: ${{ matrix.php }}
47         extensions: pdo, pgsql, mysql, sqlite
48         coverage: none
49
50     - name: Validate composer.json and composer.lock
51       run: composer validate
52
53     - name: Install dependencies
54       run: composer install --prefer-dist --no-progress --no-interaction --no-suggest
55
56     - name: Run test suite
57       run: php vendor/bin/codecept run
58       env:
59         PGPASSWORD: postgres
60         MYSQL_HOST: 127.0.0.1