|
9 | 9 |
|
10 | 10 | strategy: |
11 | 11 | matrix: |
12 | | - php-version: [7.3, 7.4, 8.0, 8.1] |
| 12 | + php-version: [7.3, 7.4, 8.0, 8.1, 8.2] |
13 | 13 | os: [ubuntu-latest] |
14 | 14 | es-version: [7.17-SNAPSHOT] |
15 | 15 |
|
16 | 16 | steps: |
17 | 17 | - name: Checkout |
18 | | - uses: actions/checkout@v2 |
| 18 | + uses: actions/checkout@v3 |
19 | 19 |
|
20 | 20 | - name: Use PHP ${{ matrix.php-version }} |
21 | 21 | uses: shivammathur/setup-php@v2 |
22 | 22 | with: |
23 | 23 | php-version: ${{ matrix.php-version }} |
24 | | - extensions: yaml |
| 24 | + extensions: yaml, zip, curl |
| 25 | + coverage: none |
25 | 26 | env: |
26 | 27 | COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
27 | | - |
| 28 | + |
28 | 29 | - name: Get composer cache directory |
29 | 30 | id: composercache |
30 | | - run: echo "::set-output name=dir::$(composer config cache-files-dir)" |
| 31 | + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT |
31 | 32 |
|
32 | 33 | - name: Cache dependencies |
33 | | - uses: actions/cache@v2 |
| 34 | + uses: actions/cache@v3 |
34 | 35 | with: |
35 | 36 | path: ${{ steps.composercache.outputs.dir }} |
36 | | - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} |
37 | | - restore-keys: ${{ runner.os }}-composer- |
| 37 | + key: ${{ runner.os }}-php-${{ matrix.php-version }}-${{ hashFiles('**/composer.json') }} |
| 38 | + restore-keys: ${{ runner.os }}-php-${{ matrix.php-version }}- |
38 | 39 |
|
39 | 40 | - name: Install dependencies |
40 | | - if: ${{ matrix.php-version != '8.0' }} |
41 | 41 | run: | |
42 | 42 | composer install --prefer-dist |
43 | 43 |
|
44 | | - - name: ignore ignore-platform-reqs if it is using php 8 |
45 | | - if: ${{ matrix.php-version == '8.0' }} |
46 | | - run: | |
47 | | - composer install --prefer-dist --ignore-platform-reqs |
48 | | -
|
49 | 44 | - name: PHP Coding Standards |
50 | 45 | run: | |
51 | 46 | composer run-script phpcs |
|
68 | 63 | sudo sysctl -w vm.max_map_count=262144 |
69 | 64 |
|
70 | 65 | - name: Runs Elasticsearch ${{ matrix.es-version }} |
71 | | - uses: elastic/elastic-github-actions/elasticsearch@master |
| 66 | + uses: elastic/elastic-github-actions/elasticsearch@trial-license |
72 | 67 | with: |
73 | 68 | stack-version: ${{ matrix.es-version }} |
74 | 69 |
|
|
0 commit comments