Bump actions/cache from 3 to 4 #148
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Integration Tests | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
integration-tests: | |
name: Magento 2 Integration Tests | |
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 -h 127.0.0.1 -u root --silent" --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 | |
rabbitmq: | |
image: rabbitmq:3-management | |
ports: | |
- 5672:5672 | |
env: | |
RABBITMQ_DEFAULT_USER: guest | |
RABBITMQ_DEFAULT_PASS: guest | |
options: --health-cmd="rabbitmq-diagnostics -q ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache Composer dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/.composer/cache | |
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-composer- | |
- name: Set PROJECT_ROOT environment variable | |
run: echo "PROJECT_ROOT=$(pwd)" >> $GITHUB_ENV | |
- name: M2 Integration Tests with Magento 2 (Php8.1) | |
uses: extdn/github-actions-m2/magento-integration-tests/8.1@master | |
with: | |
module_name: Crealoz_EasyAudit | |
composer_name: crealoz/easy-audit-free | |
magento_version: '2.4.6' | |
composer_version: 2 | |
phpunit_file: 'phpunit.xml.dist' |