forked from CommerceWeavers/SyliusSaferpayPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.8 KB
/
contract_tests.yaml
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
name: Contract tests
on:
schedule:
- cron: "0 1 * * *" # Run at 1am every Saturday
workflow_dispatch: ~
jobs:
tests:
runs-on: ubuntu-latest
name: "Sylius ${{ matrix.sylius }}, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, MySQL ${{ matrix.mysql }}"
strategy:
fail-fast: false
matrix:
php: ["8.2"]
symfony: ["^6.4"]
sylius: ["~1.12.0"]
mysql: ["8.0"]
node: ["18.x"]
env:
APP_ENV: test
DATABASE_URL: "mysql://root:[email protected]/sylius?serverVersion=${{ matrix.mysql }}"
SAFERPAY_TEST_API_URL: "https://test.saferpay.com/api/"
SAFERPAY_TEST_API_USER: ${{ secrets.SAFERPAY_TEST_API_USER }}
SAFERPAY_TEST_API_PASSWORD: ${{ secrets.SAFERPAY_TEST_API_PASSWORD }}
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
extensions: intl
tools: flex,symfony
coverage: none
- name: Build test application
uses: SyliusLabs/[email protected]
with:
e2e: "yes"
e2e_js: "yes"
php_version: "${{ matrix.php }}"
symfony_version: "${{ matrix.symfony }}"
sylius_version: "${{ matrix.sylius }}"
database_version: "${{ matrix.mysql }}"
node_version: "${{ matrix.node }}"
build_type: "plugin"
- name: Run PHPUnit
run: vendor/bin/phpunit --colors=always --testsuite contract