Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Add] Integration github actions #53

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/coding-standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ jobs:
name: M2 Coding Standard
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- uses: extdn/github-actions-m2/magento-coding-standard@master
90 changes: 90 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: ExtDN M2 Integration Tests
on: [ push, pull_request ]

jobs:
mage246:
name: Magento 2 Integration Tests (Magento v2.4.6)
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8.0
env:
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
options: --tmpfs /tmp:rw --tmpfs /var/lib/mysql:rw --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
es:
image: docker.io/wardenenv/elasticsearch:8.1
ports:
- 9200:9200
env:
'discovery.type': single-node
'xpack.security.enabled': false
ES_JAVA_OPTS: "-Xms64m -Xmx512m"
options: --health-cmd="curl localhost:9200/_cluster/health?wait_for_status=yellow&timeout=60s" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v2
- name: M2 Integration Tests with Magento 2
uses: extdn/github-actions-m2/magento-integration-tests/8.2@master
with:
module_name: GhoSter_OutOfStockAtLast
composer_name: ghoster/module-outofstockatlast
ce_version: 2.4.6

mage244:
name: Magento 2 Integration Tests (Magento v2.4.4)
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8.0
env:
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
options: --tmpfs /tmp:rw --tmpfs /var/lib/mysql:rw --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
es:
image: docker.io/wardenenv/elasticsearch:7.16
ports:
- 9200:9200
env:
'discovery.type': single-node
'xpack.security.enabled': false
ES_JAVA_OPTS: "-Xms64m -Xmx512m"
options: --health-cmd="curl localhost:9200/_cluster/health?wait_for_status=yellow&timeout=60s" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v2
- name: M2 Integration Tests with Magento 2
uses: extdn/github-actions-m2/magento-integration-tests/8.1@master
with:
module_name: GhoSter_OutOfStockAtLast
composer_name: ghoster/module-outofstockatlast
ce_version: 2.4.4

mage24:
name: Magento 2 Integration Tests (Magento v2.4.3)
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8.0
env:
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
options: --tmpfs /tmp:rw --tmpfs /var/lib/mysql:rw --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
es:
image: docker.io/wardenenv/elasticsearch:7.10
ports:
- 9200:9200
env:
'discovery.type': single-node
'xpack.security.enabled': false
ES_JAVA_OPTS: "-Xms64m -Xmx512m"
options: --health-cmd="curl localhost:9200/_cluster/health?wait_for_status=yellow&timeout=60s" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v2
- name: M2 Integration Tests with Magento 2
uses: extdn/github-actions-m2/magento-integration-tests/7.4@master
with:
module_name: GhoSter_OutOfStockAtLast
composer_name: ghoster/module-outofstockatlast
ce_version: 2.4.3
23 changes: 23 additions & 0 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: ExtDN M2 Unit Tests
on: [ push, pull_request ]
jobs:
unit-tests:
name: Magento 2 Unit Tests
runs-on: ubuntu-latest
env:
MODULE_NAME: GhoSter_OutOfStockAtLast
COMPOSER_NAME: ghoster/module-outofstockatlast
steps:
- uses: actions/checkout@v2
- uses: docker://yireo/github-actions-magento-unit-tests:7.4
env:
MAGENTO_VERSION: '2.4.3'
- uses: docker://yireo/github-actions-magento-unit-tests:8.1
env:
MAGENTO_VERSION: '2.4.4'
- uses: docker://yireo/github-actions-magento-unit-tests:8.1
env:
MAGENTO_VERSION: '2.4.5'
- uses: docker://yireo/github-actions-magento-unit-tests:8.2
env:
MAGENTO_VERSION: '2.4.6'
4 changes: 0 additions & 4 deletions registration.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<?php
/**
* phpcs:ignore Magento2.Legacy.Copyright.FoundCopyrightMissingOrWrongFormat
* Copyright © GhoSter, Inc. All rights reserved.
*/
declare(strict_types=1);

use Magento\Framework\Component\ComponentRegistrar;
Expand Down
Loading