-
Notifications
You must be signed in to change notification settings - Fork 53
70 lines (55 loc) · 1.94 KB
/
Copy pathintegration.yml
File metadata and controls
70 lines (55 loc) · 1.94 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
60
61
62
63
64
65
66
67
68
69
70
name: Run PHPUnit
on:
# Prevent the "push" build from running when there are only irrelevant changes.
push:
paths-ignore:
- "**.md"
permissions: {}
jobs:
test:
name: WP ${{ matrix.wordpress }} on PHP ${{ matrix.php }}
runs-on: ubuntu-latest
env:
WP_VERSION: ${{ matrix.wordpress }}
strategy:
matrix:
include:
# Check lowest supported WP version, with the lowest supported PHP.
- wordpress: '6.4'
php: '7.4'
# Check latest WP with the latest PHP.
- wordpress: 'master'
php: 'latest'
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Install wordpress environment
run: npm install -g @wordpress/env
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
with:
php-version: ${{ matrix.php }}
tools: composer
- name: Install Composer dependencies
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
with:
composer-options: "${{ matrix.composer-options }}"
- name: Setup problem matchers for PHP
run: echo "::add-matcher::${RUNNER_TOOL_CACHE}/php.json"
env:
RUNNER_TOOL_CACHE: ${{ runner.tool_cache }}
- name: Setup Problem Matchers for PHPUnit
run: echo "::add-matcher::${RUNNER_TOOL_CACHE}/phpunit.json"
env:
RUNNER_TOOL_CACHE: ${{ runner.tool_cache }}
- name: Setup wp-env
run: wp-env start
env:
WP_ENV_CORE: WordPress/WordPress#${{ matrix.wordpress }}
- name: Run integration tests (single site)
run: composer test:integration
- name: Run integration tests (multisite)
run: composer test:integration-ms