Skip to content

Commit ac11011

Browse files
committed
ci: make tests actually run (#1)
Note, the integration tests are still failing.
1 parent 0d75c6c commit ac11011

File tree

5 files changed

+61
-3
lines changed

5 files changed

+61
-3
lines changed

.github/workflows/integration.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
needs: compute_matrix
2323
uses: graycoreio/github-actions-magento2/.github/workflows/integration.yaml@main
2424
with:
25-
package_name: graycore/magento2-cors
25+
package_name: graycore/magento2-graphql-introspection-cache
2626
matrix: ${{ needs.compute_matrix.outputs.matrix }}
2727
test_command: ../../../vendor/bin/phpunit ../../../vendor/graycore/magento2-graphql-introspection-cache/Test/Integration
2828
secrets:

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
vendor/
2+
composer.lock

Test/Integration/SmokeTest.php

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace Graycore\GraphQlIntrospectionCache\Test\Integration;
4+
5+
use PHPUnit\Framework\TestCase;
6+
7+
class SmokeTest extends TestCase
8+
{
9+
public function testItworks()
10+
{
11+
$this->assertEquals(true, true);
12+
}
13+
}

Test/Unit/SmokeTest.php

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace Graycore\GraphQlIntrospectionCache\Test\Unit;
4+
5+
use PHPUnit\Framework\TestCase;
6+
7+
class SmokeTest extends TestCase
8+
{
9+
public function testItworks()
10+
{
11+
$this->assertEquals(true, true);
12+
}
13+
}

composer.json

+32-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,17 @@
22
"name": "graycore/magento2-graphql-introspection-cache",
33
"type": "magento2-module",
44
"require": {
5-
"magento/framework": "*",
6-
"php": ">=7.4"
5+
"php": ">=7.4",
6+
"magento/framework": "^102.0 || ^103.0",
7+
"magento/module-catalog": "^103.0 || ^104.0",
8+
"magento/module-eav": "^102.0",
9+
"magento/module-graph-ql": "^100.0.0",
10+
"magento/module-graph-ql-cache": "^100.0.0"
11+
},
12+
"require-dev": {
13+
"magento/magento-coding-standard": ">=6.0",
14+
"phpunit/phpunit": "^8.0 || ^9.0",
15+
"squizlabs/php_codesniffer": "^3.0"
716
},
817
"license": [
918
"MIT"
@@ -18,5 +27,26 @@
1827
},
1928
"scripts": {
2029
"unit-test": "vendor/bin/phpunit ./Test/Unit"
30+
},
31+
"archive": {
32+
"exclude": [
33+
"/docs",
34+
"/Test",
35+
"README.md"
36+
]
37+
},
38+
"repositories": {
39+
"0": {
40+
"type": "composer",
41+
"url": "https://repo.magento.com/"
42+
}
43+
},
44+
"config": {
45+
"preferred-install": "dist",
46+
"sort-packages": true,
47+
"allow-plugins": {
48+
"magento/composer-dependency-version-audit-plugin": true,
49+
"magento/magento-composer-installer": false
50+
}
2151
}
2252
}

0 commit comments

Comments
 (0)