Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
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:
# nightly, to catch upstream Shopware changes that break the plugin
- cron: '17 3 * * *'

jobs:
phpunit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
shopware-version:
# Latest stable 6.7 minor and trunk (6.8 development), matching the
# composer constraint "~6.7.0 || ~6.8.0". Branch refs are resolved by
# the shopware-version action; there is no rolling "6.7.x" branch.
- '6.7.13.x'
- 'trunk'
steps:
- name: Setup Extension
uses: shopware/github-actions/setup-extension@main
with:
extensionName: ${{ github.event.repository.name }}
shopwareVersion: ${{ matrix.shopware-version }}
extraRepositories: |-
{
"local-plugins": {
"type": "path",
"url": "custom/plugins/*"
}
}

- name: Run PHPUnit
uses: shopware/github-actions/phpunit@main
with:
extensionName: ${{ github.event.repository.name }}
Loading