-
Notifications
You must be signed in to change notification settings - Fork 206
43 lines (35 loc) · 1.23 KB
/
compatibility.yml
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
name: PHP tests
on:
pull_request
jobs:
beta-compatibility:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
woocommerce: [ 'beta' ]
wordpress: [ 'latest' ]
php: [ '7.4', '8.0', '8.1' ]
name: Beta (PHP=${{ matrix.php }}, WP=${{ matrix.wordpress }}, WC=${{ matrix.woocommerce }})
env:
PHP_VERSION: ${{ matrix.php }}
WP_VERSION: ${{ matrix.wordpress }}
WC_VERSION: ${{ matrix.woocommerce }}
steps:
- name: Testing with PHP=${{ matrix.php }}, WP=${{ matrix.wordpress }}, WC=${{ matrix.woocommerce }}
uses: actions/checkout@v2
- name: Set up dependencies caching
uses: actions/cache@v2
with:
path: ~/.cache/composer/
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
- name: If PHP >= 8.0, set up PHPUnit 9.5 for compatibility
if: ${{ matrix.php >= '8.0' }}
run: wget https://phar.phpunit.de/phpunit-9.5.13.phar && mv phpunit-9.5.13.phar phpunit.phar
- name: Run CI checks
run: bash bin/run-ci-tests.bash