Skip to content

Commit

Permalink
Merge pull request #140 from magmodules/release/1.6.0
Browse files Browse the repository at this point in the history
Release/1.6.0
  • Loading branch information
Marvin-Magmodules authored Feb 11, 2022
2 parents 4685926 + d715c3f commit 25676a0
Show file tree
Hide file tree
Showing 107 changed files with 8,000 additions and 3,473 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/codesniffer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Codesniffer with the Magento Coding standard
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Run codesniffer
run:
docker run
--volume $(pwd)/:/app/workdir
michielgerritsen/magento-coding-standard:latest
--severity=10
23 changes: 15 additions & 8 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
name: Lint PHP files
on: push
on: [push, pull_request]

jobs:
php-70:
runs-on: ubuntu-latest
steps:
- uses: StephaneBour/[email protected]
with:
dir: './'

php-71:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -36,3 +29,17 @@ jobs:
- uses: StephaneBour/[email protected]
with:
dir: './'

php-80:
runs-on: ubuntu-latest
steps:
- uses: StephaneBour/[email protected]
with:
dir: './'

php-81:
runs-on: ubuntu-latest
steps:
- uses: StephaneBour/[email protected]
with:
dir: './'
30 changes: 30 additions & 0 deletions .github/workflows/setup-di-compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: setup:di:compile

on: pull_request

jobs:
build:
strategy:
matrix:
include:
- PHP_VERSION: php71-fpm
MAGENTO_VERSION: 2.3.3
- PHP_VERSION: php73-fpm
MAGENTO_VERSION: 2.3.6-p1
- PHP_VERSION: php74-fpm
MAGENTO_VERSION: 2.4.2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Start Docker
run: docker run --detach --name magento-project-community-edition michielgerritsen/magento-project-community-edition:${{ matrix.PHP_VERSION }}-magento${{ matrix.MAGENTO_VERSION }}

- name: Upload our code into the docker container
run: docker cp $(pwd) magento-project-community-edition:/data/extensions/

- name: Install the extension in Magento
run: docker exec magento-project-community-edition composer require magmodules/magento2-channable:@dev

- name: Run setup:di:compile
run: docker exec magento-project-community-edition php bin/magento setup:di:compile
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

73 changes: 73 additions & 0 deletions Api/Config/RepositoryInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?php
/**
* Copyright © Magmodules.eu. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magmodules\Channable\Api\Config;

/**
* Config repository interface
*/
interface RepositoryInterface extends System\OrderInterface
{

/** Extension code */
const EXTENSION_CODE = 'Magmodules_Channable';

/** General Group */
const XML_PATH_EXTENSION_VERSION = 'magmodules_channable/general/version';
const XML_PATH_DEBUG = 'magmodules_channable/general/debug';

/**
* Returns current version of module
*
* @return string
*/
public function getExtensionVersion(): string;

/**
* Get Magento Product version
*
* @return string
*/
public function getMagentoVersion(): string;

/**
* Get Magento Product edition
*
* @return string
*/
public function getMagentoEdition(): string;

/**
* Returns saved module token
*
* @return ?string
*/
public function getToken(): ?string;

/**
* Set module token
*
* @param string|null $token
*
* @return mixed
*/
public function setToken(?string $token);

/**
* Retrieve application store currenct code
*
* @return string
*/
public function getStoreCurrencyCode(): string;

/**
* Returns true if debug log is enabled
*
* @return bool
*/
public function logDebug(): bool;
}
Loading

0 comments on commit 25676a0

Please sign in to comment.