Skip to content

GitHub actions

GitHub actions #29

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:
env:
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
uses: shopware/github-actions/.github/workflows/phpstan.yml@phpstan-deps

Check failure on line 27 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: 27, Col: 5): Unexpected value 'uses' .github/workflows/php.yml (Line: 28, Col: 5): Unexpected value 'with'
with:
extensionName: SwagPayPal
shopwareVersion: trunk
dependencies: |-
[
{"name": "SwagCmsExtensions", "repo": "https://shopware:$GITLAB_TOKEN@gitlab.shopware.com/shopware/6/services/cms-extensions.git"}
]
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