Skip to content

Commit

Permalink
Add integration tests Github Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mbissonho committed Oct 24, 2024
1 parent ca7f667 commit 6f42619
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Integration Tests
on:
push:
branches:
- main
pull_request:
branches:
- 'main'

jobs:
integration-tests:
name: Magento 2 Integration Tests
runs-on: ubuntu-latest
services:
mysql:
image: mysql:5.7
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.8
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@v3
- name: Magento 2.4.5 Integration Tests (Php8.1)
uses: extdn/github-actions-m2/magento-integration-tests/8.1@master
with:
module_name: Mbissonho_RememberAdminLastPage
composer_name: mbissonho/module-remember-admin-last-page
ce_version: '2.4.5'

0 comments on commit 6f42619

Please sign in to comment.