9
9
workflow_call :
10
10
11
11
jobs :
12
- test :
12
+ Test :
13
13
env :
14
14
PLUGIN_NAME : FroshPlatformThumbnailProcessor
15
15
strategy :
39
39
with :
40
40
path : ${{ github.workspace }}/custom/plugins/${{ env.PLUGIN_NAME }}
41
41
42
- - name : Run Tests
42
+ - name : Run UnitTests
43
43
working-directory : ${{ github.workspace }}/custom/plugins/${{ env.PLUGIN_NAME }}
44
44
run : |
45
45
composer create-placeholders
@@ -53,18 +53,51 @@ jobs:
53
53
root_dir : ${{ github.workspace }}/custom/plugins/${{ env.PLUGIN_NAME }}
54
54
working-directory : ${{ github.workspace }}/custom/plugins/${{ env.PLUGIN_NAME }}
55
55
56
- - name : Setup Shopware for Integration
56
+ # we call this after PHPUnit to make sure that the generated files are available
57
+ - name : PHPStan
58
+ run : |
59
+ ${{ github.workspace }}/vendor/bin/phpstan analyse -c ${{ github.workspace }}/custom/plugins/${{ env.PLUGIN_NAME }}/phpstan.neon
60
+
61
+ IntegrationTest :
62
+ env :
63
+ PLUGIN_NAME : FroshPlatformThumbnailProcessor
64
+ strategy :
65
+ fail-fast : false
66
+ matrix :
67
+ version : [ "v6.6.1.1", "v6.6.0.3", "trunk" ]
68
+ php-version : [ "8.2" ]
69
+ runs-on : ubuntu-latest
70
+ steps :
71
+ - name : Setup Shopware
57
72
uses : shopware/setup-shopware@main
58
73
with :
59
74
shopware-version : ${{ matrix.version }}
60
75
php-version : ${{ matrix.php-version }}
61
76
77
+ - name : Info
78
+ run : |
79
+ php bin/console -V
80
+ mysql -V
81
+ php -v
82
+ composer -V
83
+ echo ${{ github.workspace }}
84
+
85
+ - name : Checkout
86
+ uses : actions/checkout@v3
87
+ with :
88
+ path : ${{ github.workspace }}/custom/plugins/${{ env.PLUGIN_NAME }}
89
+
62
90
- name : PHPUnit Integration
63
91
working-directory : ${{ github.workspace }}/custom/plugins/${{ env.PLUGIN_NAME }}
64
92
run : |
65
- php ${{ github.workspace }}/vendor/bin/phpunit --testsuite Integration
93
+ composer create-placeholders
94
+ php -d pcov.enabled=1 ${{ github.workspace }}/vendor/bin/phpunit --testsuite Integration
95
+
96
+ - uses : codecov/codecov-action@v3
97
+ env :
98
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
99
+ with :
100
+ files : ./clover.xml
101
+ root_dir : ${{ github.workspace }}/custom/plugins/${{ env.PLUGIN_NAME }}
102
+ working-directory : ${{ github.workspace }}/custom/plugins/${{ env.PLUGIN_NAME }}
66
103
67
- # we call this after PHPUnit to make sure that the generated files are available
68
- - name : PHPStan
69
- run : |
70
- ${{ github.workspace }}/vendor/bin/phpstan analyse -c ${{ github.workspace }}/custom/plugins/${{ env.PLUGIN_NAME }}/phpstan.neon
0 commit comments