mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Add tests using real WC
This commit is contained in:
parent
02c84e43e0
commit
04aba8ceb1
14 changed files with 746 additions and 114 deletions
39
.github/workflows/e2e.yml
vendored
Normal file
39
.github/workflows/e2e.yml
vendored
Normal file
|
@ -0,0 +1,39 @@
|
|||
name: e2e tests
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
php-versions: ['7.1', '7.4']
|
||||
|
||||
name: PHP ${{ matrix.php-versions }}
|
||||
steps:
|
||||
- uses: satackey/action-docker-layer-caching@v0.0.11
|
||||
continue-on-error: true
|
||||
|
||||
- uses: jonaseberle/github-action-setup-ddev@v1
|
||||
with:
|
||||
autostart: false
|
||||
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: Configure DDEV
|
||||
run: ddev config --php-version ${{ matrix.php-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
|
Loading…
Add table
Add a link
Reference in a new issue