Skip to content

GitHub actions

GitHub actions #41

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
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": "SwagCommercial", "repo": "https://shopware:$COMMERCIAL_TOKEN@gitlab.shopware.com/shopware/6/product/commercial.git"},
{"name": "SwagCmsExtensions", "repo": "https://shopware:$CMS_TOKEN@gitlab.shopware.com/shopware/6/services/cms-extensions.git"}
]
secrets:
env: |-
CMS_TOKEN=${{ secrets.CMS_GITLAB_TOKEN }}
COMMERCIAL_TOKEN=${{ secrets.COMMERCIAL_GITLAB_TOKEN }}
phpunit:
uses: shopware/github-actions/.github/workflows/phpunit.yml@phpstan-deps

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

View workflow run for this annotation

GitHub Actions / .github/workflows/php.yml

Invalid workflow file

error parsing called workflow ".github/workflows/php.yml" -> "shopware/github-actions/.github/workflows/phpunit.yml@phpstan-deps" : failed to fetch workflow: reference to workflow should be either a valid branch, tag, or commit
with:
uploadCoverage: true
extensionName: SwagPayPal
shopwareVersion: ${{ matrix.shopware-version }}
dependencies: |-
[
{"name": "SwagCmsExtensions", "repo": "https://shopware:$CMS_TOKEN@gitlab.shopware.com/shopware/6/services/cms-extensions.git"}
]
secrets:
env: |-
CMS_TOKEN=${{ secrets.GITLAB_TOKEN }}
codecovToken: ${{ secrets.CODECOV_TOKEN }}