forked from woocommerce/woocommerce-paypal-payments
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (29 loc) · 924 Bytes
/
e2e.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
name: e2e tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.3', '7.4', '8.1']
wc-versions: ['5.9.5', '7.7.2']
name: PHP ${{ matrix.php-versions }} WC ${{ matrix.wc-versions }}
steps:
- uses: ddev/github-action-setup-ddev@v1
with:
autostart: false
- uses: actions/checkout@v1
- name: Configure DDEV PHP
run: ddev config --php-version ${{ matrix.php-versions }}
- name: Configure DDEV WC
run: ddev config --web-environment-add="WC_VERSION=${{ matrix.wc-versions }}"
- name: Start DDEV
run: ddev start
- name: Orchestrate DDEV
run: ddev orchestrate -f
- name: Create config
run: cp -n .env.e2e.example .env.e2e
- name: Setup tests
run: ddev php tests/e2e/PHPUnit/setup.php
- name: Run PHPUnit
run: ddev exec phpunit -c tests/e2e/phpunit.xml.dist