Skip to content

PO-489 - Add Github actions #91

PO-489 - Add Github actions

PO-489 - Add Github actions #91

Workflow file for this run

name: PHP checks
on:
push:
branches:
- trunk
pull_request:
workflow_dispatch:
workflow_call:
jobs:
phpstan:
uses: shopware/github-actions/.github/workflows/phpstan.yml@main

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

View workflow run for this annotation

GitHub Actions / PHP checks

Invalid workflow file

The workflow is not valid. .github/workflows/php.yml (Line: 13, Col: 11): Input extensionName is required, but not provided while calling.
validate-openapi-typescript:
runs-on: ubuntu-latest
steps:
- name: Setup Extension
uses: shopware/github-actions/setup-extension@main
env:
runner: ${{ runner.environment }}
with:
extensionName: ${{ github.event.repository.name }}
mysqlVersion: skip
shopwareVersion: trunk
- working-directory: custom/plugins/${{ github.event.repository.name }}
run: |
${GITHUB_WORKSPACE}/bin/console bundle:dump
composer init:admin
composer openapi:generate
git update-index --refresh || printf ''
git diff-index "${{ github.sha }}" --quiet -- src/Resources/app/administration/src/types/openapi.d.ts || (echo "Please run 'composer openapi:generate' to update openapi.d.ts" && exit 1)