feat: add Installation Test Action (#1)

This commit is contained in:
Damien Retzinger
2022-06-25 12:14:49 -04:00
committed by GitHub
parent a6400eb9ec
commit 4bc0854cfc
9 changed files with 246 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
vendor/
+3
View File
@@ -0,0 +1,3 @@
# Magento 2 Demo Package
It does nothing, intentionally...
@@ -0,0 +1,12 @@
<?php
namespace Graycore\DemoPackage\Test\Integration;
class TestItWorks extends \PHPUnit\Framework\TestCase
{
public function testItWorks()
{
$this->assertEquals(true, true);
}
}
@@ -0,0 +1,12 @@
<?php
namespace Graycore\DemoPackage\Test\Unit;
class TestItWorks extends \PHPUnit\Framework\TestCase
{
public function testItWorks()
{
$this->assertEquals(true, true);
}
}
+41
View File
@@ -0,0 +1,41 @@
{
"name": "graycore/magento2-demo-package",
"description": "A Magento 2 Demostration Package",
"type": "magento2-module",
"license": "MIT",
"authors": [
{
"name": "Damien Retzinger",
"email": "damienwebdev@gmail.com"
}
],
"archive": {
"exclude": [
"/docs",
"/Test",
"README.md"
]
},
"minimum-stability": "stable",
"autoload": {
"psr-4": {
"Graycore\\DemoPackage\\": ""
},
"files": [
"registration.php"
]
},
"require": {
"magento/framework": "^102.0 || ^103.0"
},
"repositories": {
"0": {
"type": "composer",
"url": "https://repo.magento.com/"
}
},
"config": {
"preferred-install": "dist",
"sort-packages": true
}
}
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Graycore_DemoPackage" setup_version="1.0.0">
<sequence>
<module name="Magento_Framework" />
</sequence>
</module>
</config>
+5
View File
@@ -0,0 +1,5 @@
<?php declare(strict_types=1);
use \Magento\Framework\Component\ComponentRegistrar;
ComponentRegistrar::register(ComponentRegistrar::MODULE, 'Graycore_DemoPackage', __DIR__);