-
Notifications
You must be signed in to change notification settings - Fork 4
78 lines (66 loc) · 1.83 KB
/
after_splitting_test.yaml
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
69
70
71
72
73
74
75
76
77
78
name: After Split Testing
on:
pull_request: null
env:
COMPOSER_ROOT_VERSION: 'dev-master'
DATABASE_URL: 'mysql://[email protected]:3306/draw'
jobs:
after_split_testing:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
package_name:
- application
- aws-tool-kit
- console
- core
- cron-job
- dependency-injection
- doctrine-extra
- entity-migrator
- fixer
- framework-extra-bundle
- log
- mailer
- messenger
- open-api
- process
- profiling
- security
- sonata-import-bundle
- sonata-integration-bundle
- sonata-extra-bundle
- tester
- tester-bundle
- user-bundle
- validator
- workflow
name: After Split Testing of ${{ matrix.package_name }}
steps:
- name: Checkout
uses: 'actions/checkout@v4'
- name: PHP Setup
uses: 'shivammathur/setup-php@v2'
with:
php-version: '8.2'
coverage: none
- name: Setup MySQL
uses: 'shogo82148/actions-setup-mysql@v1'
with:
mysql-version: 8.0
distribution: mysql
auto-start: true
- name: Create Database
run: |
mysql -h 127.0.0.1 -uroot -e "CREATE DATABASE draw"
- name: 'Composer Setup'
run: |
composer install --no-progress
vendor-bin/monorepo/vendor/bin/monorepo-builder localize-composer-paths packages/${{ matrix.package_name }}/composer.json
cd packages/${{ matrix.package_name }}
composer update --no-progress
- name: 'Automation Test'
run: |
cd packages/${{ matrix.package_name }}
vendor/bin/phpunit