-
Notifications
You must be signed in to change notification settings - Fork 6
68 lines (55 loc) · 1.69 KB
/
main.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
name: CI
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:5.7
env:
MYSQL_ALLOW_EMPTY_PASSWORD: true
MYSQL_DATABASE: laminas_test
MYSQL_USER: laminas_test
MYSQL_PASSWORD: laminas_test
ports:
- 3306:3306
options: >-
--health-cmd "mysqladmin ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
strategy:
matrix:
php: [8.0]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: pdo, mysql, zip
coverage: none
- name: Downgrade to composer v1
run: composer self-update --1
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction
- name: Checkout Laminas tests
uses: actions/checkout@v2
with:
repository: Naktibalda/codeception-laminas-tests
path: framework-tests
ref: '5.0'
submodules: recursive
- name: Install dependencies of Laminas tests
run: composer update --no-dev --prefer-dist --no-interaction
working-directory: framework-tests
- name: Create database schema
run: php vendor/bin/doctrine-module orm:schema-tool:create
working-directory: framework-tests
- name: Run test suite
run: |
php vendor/bin/codecept build -c framework-tests
php vendor/bin/codecept run functional -c framework-tests