-
Notifications
You must be signed in to change notification settings - Fork 10
59 lines (56 loc) · 1.9 KB
/
Copy pathsymfony.yml
File metadata and controls
59 lines (56 loc) · 1.9 KB
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
name: Symfony
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
jobs:
run:
runs-on: ${{ matrix.operating-system }}
services:
mysql:
image: mariadb:10.5.5
env:
MYSQL_ROOT_PASSWORD: '12345678'
MYSQL_USER: 'shortener'
MYSQL_PASSWORD: '12345678'
MYSQL_DATABASE: 'shortener_db'
ports:
- 32574:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
strategy:
matrix:
operating-system: [ubuntu-latest]
symfony-versions: ['4.4', '5.4', '6.0']
php-versions: ['8.0', '8.1']
name: PHP ${{ matrix.php-versions }} / Symfony ${{ matrix.symfony-versions }} Test on ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl
ini-values: post_max_size=256M
coverage: xdebug
tools: php-cs-fixer, phpunit
- name: Download Symfony Binary
run: |
wget https://get.symfony.com/cli/installer -O - | bash -s - --install-dir=/home/runner/.symfony/bin
- name: Install Symfony
run: |
git config --global user.email "${{ github.actor }}"
git config --global user.name ""github-action-${{ github.actor }}@users.noreply.github.com""
/home/runner/.symfony/bin/symfony new symfony --version=${{ matrix.symfony-versions }}
- name: Configure Symfony to run integration tests
run: |
php .integration/patch.php
cd symfony
composer upgrade -n --no-progress
composer require phpunit -n --no-progress
- name: Run Integration tests
run: |
cp -rf .integration/symfony/* symfony/
cd symfony
php bin/phpunit