-
Notifications
You must be signed in to change notification settings - Fork 9
64 lines (53 loc) · 1.71 KB
/
test.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
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
name: Test
on: [push, workflow_dispatch]
jobs:
phpunit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Composer
uses: php-actions/composer@v6
with:
version: 2.2
php_version: 7.4
php_extensions: zip
- name: PHPUnit Tests
uses: php-actions/phpunit@v2
with:
version: 5.7
php_version: 5.6
configuration: phpunit.xml.dist
args: --coverage-text
behat:
runs-on: ubuntu-latest
environment: SANDBOX
steps:
- uses: actions/checkout@v2
- name: Docker up
env:
SHOP_ID: ${{ secrets.SHOP_ID }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
PUBLIC_KEY: ${{ secrets.PUBLIC_KEY }}
SHOP_ID_MARKETPLACE: ${{ secrets.SHOP_ID_MARKETPLACE }}
SECRET_KEY_MARKETPLACE: ${{ secrets.SECRET_KEY_MARKETPLACE }}
SHOP_ID_OWNED_BY_MARKETPLACE: ${{ secrets.SHOP_ID_OWNED_BY_MARKETPLACE }}
BANK_CARD_PAN: ${{ secrets.BANK_CARD_PAN }}
BANK_CARD_CVV: ${{ secrets.BANK_CARD_CVV }}
BANK_CARD_EXP: ${{ secrets.BANK_CARD_EXP }}
ENVIRONMENT: SANDBOX
run: |
docker-compose -f docker-compose.ci.yml up -d
- name: Run behat tests through docker
run: |
docker-compose -f docker-compose.ci.yml exec -T php composer test:behat
- name: Down containers to stop the video
if: always()
run: |
docker-compose -f docker-compose.ci.yml down --remove-orphans
- name: Archive videos results
uses: actions/upload-artifact@v3
if: always()
with:
name: videos
path: videos
retention-days: 2