Skip to content

Commit

Permalink
NEXT-00000 - Add Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mkraeml committed Dec 6, 2024
1 parent 1080c12 commit 3ba660f
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/actions/setup-magento-plugin/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Setup SwagMigrationMagento
description: "Setup steps for SwagMigrationMagento"
author: "shopware AG"
branding:
color: "blue"
icon: "download"

runs:
using: composite
steps:
- name: Setup SwagMigrationMagento
uses: shopware/github-actions/setup-extension@main
with:
extensionName: SwagMigrationMagento
install: true
install-admin: true
extraRepositories: |
{
"SwagMigrationAssistant": {
"type": "path",
"url": "custom/plugins/SwagMigrationAssistant",
"symlink": true
},
"${{ github.event.repository.name }}": {
"type": "path",
"url": "custom/plugins/${{ github.event.repository.name }}",
"symlink": true
}
}
dependencies: |
[
{
"name": "SwagMigrationAssistant",
"repo": "https://github.com/shopware/SwagMigrationAssistant.git"
}
]
25 changes: 25 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: PHP Checks
on:
pull_request:

jobs:
codestyle_php:
name: Codestyle PHP
runs-on: ubuntu-latest
steps:
- uses: shopware/github-actions/cs-fixer@main
with:
rules: ""

phpstan:
runs-on: ubuntu-latest
steps:
- name: Checkout SwagMigrationMagento
uses: actions/checkout@v4
with:
path: custom/plugins/${{ github.event.repository.name }}
- name: Setup SwagMigrationMagento
uses: ./custom/plugins/SwagMigrationMagento/.github/actions/setup-magento-plugin
- uses: shopware/github-actions/phpstan@main
with:
extensionName: ${{ github.event.repository.name }}

0 comments on commit 3ba660f

Please sign in to comment.