Skip to content

GitHub actions

GitHub actions #23

Workflow file for this run

name: PHP
on:
pull_request:
paths:
- '**/*.php'
- .github/workflows/php.yml
push:
paths:
- '**/*.php'
branches:
- trunk
workflow_dispatch:
schedule:
- cron: '0 3 * * *'
env:
SHOPWARE_TOOL_CACHE_PHPSTAN: ${{ github.workspace }}/var/phpstan
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
jobs:
cs:
if: github.event_name != 'schedule'
uses: shopware/github-actions/.github/workflows/cs-fixer.yml@main
phpstan:
uses: shopware/github-actions/.github/workflows/phpstan.yml@phpstan-deps
with:
extensionName: SwagPayPal
shopwareVersion: trunk
dependencies: |-
[
{"name": "SwagCmsExtensions", "repo": "https://shopware:[email protected]/shopware/6/services/cms-extensions.git"}
]
secrets:
env: |

Check failure on line 34 in .github/workflows/php.yml

View workflow run for this annotation

GitHub Actions / PHP

Invalid workflow file

The workflow is not valid. .github/workflows/php.yml (Line: 34, Col: 12): Invalid secret, env is not defined in the referenced workflow.
GITLAB_TOKEN=${{ secrets.GITLAB_TOKEN }}
phpunit:
runs-on: ubuntu-latest
steps:
- name: Setup Shopware
uses: FriendsOfShopware/setup-shopware@main
with:
shopware-version: trunk
php-version: 8.2
php-extensions: pcov
- name: Run PHPUnit
working-directory: custom/plugins/SwagPayPal
run: ${{ github.workspace }}/vendor/bin/phpunit --coverage-clover clover.xml