|
10 | 10 | - main
|
11 | 11 |
|
12 | 12 | jobs:
|
13 |
| - integration-tests: |
14 |
| - # Will not run if the event is a PR to bump-meilisearch-v* (so a pre-release PR) |
15 |
| - # Will still run for each push to bump-meilisearch-v* |
16 |
| - if: github.event_name != 'pull_request' || !startsWith(github.base_ref, 'bump-meilisearch-v') |
17 |
| - runs-on: ubuntu-latest |
18 |
| - strategy: |
19 |
| - matrix: |
20 |
| - php-version: ['7.4', '8.0', '8.1'] |
21 |
| - include: |
22 |
| - - php-version: '7.4' |
23 |
| - sf-version: '4.4.*' |
24 |
| - - php-version: '7.4' |
25 |
| - sf-version: '5.4.*' |
26 |
| - - php-version: '8.0' |
27 |
| - sf-version: '6.0.*' |
28 |
| - - php-version: '8.1' |
29 |
| - sf-version: '6.0.*' |
30 |
| - - php-version: '8.1' |
31 |
| - sf-version: '6.1.*' |
32 |
| - name: integration-tests (PHP ${{ matrix.php-version }}) |
33 |
| - steps: |
34 |
| - - uses: actions/checkout@v3 |
35 |
| - - name: Install PHP |
36 |
| - uses: shivammathur/setup-php@v2 |
37 |
| - with: |
38 |
| - php-version: ${{ matrix.php-version }} |
39 |
| - tools: composer:v2, flex |
40 |
| - - name: Validate composer.json and composer.lock |
41 |
| - run: composer validate |
42 |
| - - name: Install dependencies |
43 |
| - env: |
44 |
| - SYMFONY_REQUIRE: ${{ matrix.sf-version }} |
45 |
| - run: composer install --prefer-dist --no-progress --quiet |
46 |
| - - name: Meilisearch setup with Docker |
47 |
| - run: docker run -d -p 7700:7700 getmeili/meilisearch:latest meilisearch --master-key=masterKey --no-analytics |
48 |
| - - name: Run test suite |
49 |
| - run: composer test:unit |
| 13 | + integration-tests: |
| 14 | + # Will not run if the event is a PR to bump-meilisearch-v* (so a pre-release PR) |
| 15 | + # Will still run for each push to bump-meilisearch-v* |
| 16 | + if: github.event_name != 'pull_request' || !startsWith(github.base_ref, 'bump-meilisearch-v') |
| 17 | + runs-on: ubuntu-latest |
| 18 | + strategy: |
| 19 | + matrix: |
| 20 | + php-version: ['7.4', '8.0', '8.1'] |
| 21 | + include: |
| 22 | + - php-version: '7.4' |
| 23 | + sf-version: '4.4.*' |
| 24 | + - php-version: '7.4' |
| 25 | + sf-version: '5.4.*' |
| 26 | + - php-version: '8.0' |
| 27 | + sf-version: '6.0.*' |
| 28 | + - php-version: '8.1' |
| 29 | + sf-version: '6.0.*' |
| 30 | + - php-version: '8.1' |
| 31 | + sf-version: '6.1.*' |
50 | 32 |
|
51 |
| - code-style: |
52 |
| - runs-on: ubuntu-latest |
53 |
| - name: 'Code style' |
54 |
| - steps: |
55 |
| - - uses: actions/checkout@v3 |
| 33 | + name: integration-tests (PHP ${{ matrix.php-version }}) |
| 34 | + steps: |
| 35 | + - uses: actions/checkout@v3 |
| 36 | + - name: Install PHP |
| 37 | + uses: shivammathur/setup-php@v2 |
| 38 | + with: |
| 39 | + php-version: ${{ matrix.php-version }} |
| 40 | + tools: composer:v2, flex |
| 41 | + - name: Validate composer.json and composer.lock |
| 42 | + run: composer validate |
| 43 | + - name: Install dependencies |
| 44 | + env: |
| 45 | + SYMFONY_REQUIRE: ${{ matrix.sf-version }} |
| 46 | + run: composer install --prefer-dist --no-progress --quiet |
| 47 | + - name: Meilisearch setup with Docker |
| 48 | + run: docker run -d -p 7700:7700 getmeili/meilisearch:latest meilisearch --master-key=masterKey --no-analytics |
| 49 | + - name: Run test suite |
| 50 | + run: composer test:unit |
56 | 51 |
|
57 |
| - - name: Install PHP |
58 |
| - uses: shivammathur/setup-php@v2 |
59 |
| - with: |
60 |
| - php-version: '8.0' |
| 52 | + code-style: |
| 53 | + runs-on: ubuntu-latest |
| 54 | + name: 'Code style' |
| 55 | + steps: |
| 56 | + - uses: actions/checkout@v3 |
61 | 57 |
|
62 |
| - - name: Validate composer.json and composer.lock |
63 |
| - run: composer validate |
| 58 | + - name: Install PHP |
| 59 | + uses: shivammathur/setup-php@v2 |
| 60 | + with: |
| 61 | + php-version: '8.0' |
64 | 62 |
|
65 |
| - - name: Install dependencies |
66 |
| - run: composer install --prefer-dist --no-progress --quiet |
| 63 | + - name: Validate composer.json and composer.lock |
| 64 | + run: composer validate |
67 | 65 |
|
68 |
| - - name: PHP CS Fixer |
69 |
| - run: composer lint:check |
| 66 | + - name: Install dependencies |
| 67 | + run: composer install --prefer-dist --no-progress --quiet |
70 | 68 |
|
71 |
| - - name: PHPstan |
72 |
| - run: composer phpstan |
| 69 | + - name: PHP CS Fixer |
| 70 | + run: composer lint:check |
| 71 | + |
| 72 | + - name: PHPstan |
| 73 | + run: composer phpstan |
0 commit comments