Skip to content

PO-489 - Add Github actions #92

PO-489 - Add Github actions

PO-489 - Add Github actions #92

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
with:
extensionName: ${{ github.event.repository.name }}
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)