Repository navigation
77 lines (67 loc) · 2.17 KB
/
Copy pathparsely.yml
File metadata and controls
77 lines (67 loc) · 2.17 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
71
72
73
74
75
76
77
name: CI (Parse.ly)
on:
push:
branches-ignore:
- develop
- staging
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
changes:
name: Detect changes
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
outputs:
tests: ${{ steps.changes.outputs.tests }}
steps:
- name: Check out the change detection action
uses: actions/checkout@v7.0.1
with:
sparse-checkout: .github/actions/detect-changes
persist-credentials: false
- name: Detect changes
id: changes
uses: ./.github/actions/detect-changes
test:
name: "Parse.ly: ${{ matrix.config.parsely }} ${{ matrix.config.mode }}"
needs: changes
if: needs.changes.outputs.tests == 'true'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config:
# Oldest version of the parsely plugin
- { wp: latest, parsely: '3.15', mode: 'filter_enabled', php: '8.1' }
- { wp: latest, parsely: '3.15', mode: 'filter_disabled', php: '8.1' }
# Latest version of the parsely plugin
- { wp: latest, mode: 'filter_enabled', php: '8.1' }
- { wp: latest, mode: 'filter_disabled', php: '8.1' }
steps:
- name: Check out source code
uses: actions/checkout@v7.0.1
env:
# Clone submodules in parallel instead of one at a time.
GIT_CONFIG_COUNT: 1
GIT_CONFIG_KEY_0: submodule.fetchJobs
GIT_CONFIG_VALUE_0: 8
with:
submodules: recursive
- name: Prepare source code
uses: ./.github/actions/prepare-source
- name: Set up environment
run: |
echo WPVIP_PARSELY_INTEGRATION_PLUGIN_VERSION="${{ matrix.config.parsely }}" >> "${GITHUB_ENV}"
echo WPVIP_PARSELY_INTEGRATION_TEST_MODE="${{ matrix.config.mode }}" >> "${GITHUB_ENV}"
- name: Run tests
uses: ./.github/actions/run-wp-tests
with:
wordpress: ${{ matrix.config.wp }}
php: ${{ matrix.config.php }}
timeout-minutes: 15