Skip to content

Commit

Permalink
tests, tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
DomPixie committed Jul 21, 2023
1 parent 13264e8 commit 79198ec
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/phpcompatibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: PHP Compatibility
on: [push, pull_request]

jobs:
static:
name: PHP Compatibility
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: extdn/github-actions-m2/php-compatibility/7.4@master
10 changes: 10 additions & 0 deletions .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: M2 Coding Standard
on: [push, pull_request]

jobs:
static:
name: M2 Coding Standard
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: extdn/github-actions-m2/magento-coding-standard/7.4@master
9 changes: 9 additions & 0 deletions .github/workflows/phpcsfixer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: php-cs-fixer
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: PHP CS Fixer
run: docker run --rm -v $PWD:/code domw/php-cs-fixer php-cs-fixer fix --dry-run --diff --stop-on-violation --allow-risky=yes ./
12 changes: 12 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: M2 PHPStan
on: [push, pull_request]

jobs:
phpstan:
name: M2 PHPStan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: extdn/github-actions-m2/magento-phpstan/7.4@master
with:
composer_name: dominicwatts/snippets
2 changes: 1 addition & 1 deletion etc/acl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<resource id="Magento_Backend::stores">
<resource id="Magento_Backend::stores_settings">
<resource id="Magento_Config::config">
<resource id="PixieMedia_Snippets::config_pixiemedia_snippets" title="header"/>
<resource id="PixieMedia_Snippets::config_pixiemedia_snippets" title="Pixie Header Snippets"/>
</resource>
</resource>
</resource>
Expand Down
4 changes: 2 additions & 2 deletions view/frontend/layout/default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="head.additional">
<block ifconfig="header/snippets/header_enabled" class="PixieMedia\Snippets\Block\HeadAdditional" name="headadditional" as="headadditional" template="PixieMedia_Snippets::headadditional.phtml"/>
<block ifconfig="header/snippets/header_enabled" class="PixieMedia\Snippets\Block\HeadAdditional" name="pixie.headadditional" template="PixieMedia_Snippets::headadditional.phtml"/>
</referenceBlock>
<referenceContainer name="after.body.start">
<block ifconfig="header/snippets/body_start_enabled" class="PixieMedia\Snippets\Block\BodyStart" name="bodystart" as="bodystart" template="PixieMedia_Snippets::bodystart.phtml"/>
<block ifconfig="header/snippets/body_start_enabled" class="PixieMedia\Snippets\Block\BodyStart" name="pixie.bodystart" template="PixieMedia_Snippets::bodystart.phtml"/>
</referenceContainer>
</body>
</page>

0 comments on commit 79198ec

Please sign in to comment.