|
1 | 1 | name: "Continuous Integration" |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - branches: |
6 | | - - master |
7 | | - pull_request: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - master |
| 7 | + pull_request: |
8 | 8 |
|
9 | 9 | env: |
10 | | - fail-fast: true |
| 10 | + fail-fast: true |
11 | 11 |
|
12 | 12 | jobs: |
13 | | - tests: |
14 | | - name: "Symfony1 Tests" |
15 | | - runs-on: "ubuntu-22.04" |
16 | | - |
17 | | - strategy: |
18 | | - matrix: |
19 | | - php-version: |
20 | | - - "7.4" |
21 | | - - "8.0" |
22 | | - - "8.1" |
23 | | - - "8.2" |
24 | | - memcached-version: |
25 | | - - "1.6" |
26 | | - |
27 | | - services: |
28 | | - memcached: |
29 | | - image: "memcached:${{ matrix.memcached-version }}" |
30 | | - |
31 | | - steps: |
32 | | - - name: "Checkout" |
33 | | - uses: "actions/checkout@v3" |
34 | | - with: |
35 | | - submodules: "true" |
36 | | - |
37 | | - - name: "Install PHP" |
38 | | - uses: "shivammathur/setup-php@v2" |
39 | | - with: |
40 | | - php-version: "${{ matrix.php-version }}" |
41 | | - |
42 | | - - name: "Install dependencies with Composer" |
43 | | - uses: "ramsey/composer-install@v2" |
44 | | - |
45 | | - - name: "Run Check configuration" |
46 | | - run: "php data/bin/check_configuration.php" |
47 | | - |
48 | | - - name: "Run Tests" |
49 | | - run: "php data/bin/symfony symfony:test --trace" |
| 13 | + tests: |
| 14 | + name: "Symfony1 Tests" |
| 15 | + runs-on: "ubuntu-latest" |
| 16 | + |
| 17 | + strategy: |
| 18 | + matrix: |
| 19 | + php-version: |
| 20 | + - "7.4" |
| 21 | + - "8.0" |
| 22 | + - "8.1" |
| 23 | + - "8.2" |
| 24 | + memcached-version: |
| 25 | + - "1.6" |
| 26 | + |
| 27 | + services: |
| 28 | + memcached: |
| 29 | + image: "memcached:${{ matrix.memcached-version }}" |
| 30 | + |
| 31 | + steps: |
| 32 | + - name: Checkout |
| 33 | + uses: actions/checkout@v3 |
| 34 | + with: |
| 35 | + submodules: "true" |
| 36 | + |
| 37 | + - name: Install PHP |
| 38 | + uses: shivammathur/setup-php@v2 |
| 39 | + with: |
| 40 | + php-version: "${{ matrix.php-version }}" |
| 41 | + |
| 42 | + - name: Get composer cache directory |
| 43 | + id: composer-cache |
| 44 | + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT |
| 45 | + |
| 46 | + - name: Cache dependencies |
| 47 | + uses: actions/cache@v3 |
| 48 | + with: |
| 49 | + path: ${{ steps.composer-cache.outputs.dir }} |
| 50 | + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} |
| 51 | + restore-keys: ${{ runner.os }}-composer- |
| 52 | + |
| 53 | + - name: Install dependencies |
| 54 | + run: composer install --prefer-dist |
| 55 | + |
| 56 | + - name: Run Check configuration |
| 57 | + run: php data/bin/check_configuration.php |
| 58 | + |
| 59 | + - name: Run Tests |
| 60 | + run: php data/bin/symfony symfony:test --trace |
0 commit comments