Repository navigation
93 lines (88 loc) · 2.36 KB
/
Copy pathphp.yml
File metadata and controls
93 lines (88 loc) · 2.36 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: PHP
on:
pull_request:
paths:
- '**/*.php'
- composer.json
- phpunit.xml
- .github/workflows/php.yml
push:
branches:
- main
paths:
- '**/*.php'
- composer.json
- phpunit.xml
- .github/workflows/php.yml
workflow_dispatch:
schedule:
- cron: '0 3 * * *'
jobs:
phpunit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
shopware-version:
- '6.6.x'
- 'trunk'
mysql-version:
- 'builtin'
- 'mariadb:11.8'
steps:
- name: Setup Extension
uses: shopware/github-actions/setup-extension@main
with:
extensionName: ${{ github.event.repository.name }}
shopwareVersion: ${{ matrix.shopware-version }}
mysqlVersion: ${{ matrix.mysql-version }}
extraRepositories: |-
{
"local-plugins": {
"type": "path",
"url": "custom/plugins/*"
}
}
- name: Run PHPUnit
uses: shopware/github-actions/phpunit@main
with:
extensionName: ${{ github.event.repository.name }}
uploadCoverage: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
opensearch:
runs-on: ubuntu-latest
services:
opensearch:
image: opensearchproject/opensearch:2
env:
discovery.type: single-node
DISABLE_SECURITY_PLUGIN: 'true'
OPENSEARCH_INITIAL_ADMIN_PASSWORD: 'myWeakPassword123!'
ports:
- 9200:9200
options: >-
--health-cmd "curl http://localhost:9200/_cluster/health"
--health-interval 10s
--health-timeout 5s
--health-retries 10
env:
OPENSEARCH_URL: http://localhost:9200
SHOPWARE_ES_ENABLED: '1'
SHOPWARE_ES_INDEXING_ENABLED: '1'
steps:
- name: Setup Extension
uses: shopware/github-actions/setup-extension@main
with:
extensionName: ${{ github.event.repository.name }}
extraRepositories: |-
{
"local-plugins": {
"type": "path",
"url": "custom/plugins/*"
}
}
- name: Run PHPUnit
uses: shopware/github-actions/phpunit@main
with:
extensionName: ${{ github.event.repository.name }}