66 DB_DATABASE : magento
77 DB_USER : root
88 DB_PASSWORD : root
9- ES_VERSION : 7.10.0
10- PHP_VERSION : 8.3
9+ OS_VERSION : 2.19.0
10+ PHP_VERSION : 8.4
11+ COMPOSER_VERSION : 2.8.9
1112
1213
1314on : [pull_request]
@@ -23,15 +24,15 @@ jobs:
2324 uses : shivammathur/setup-php@v2 # https://github.com/shivammathur/setup-php
2425 with :
2526 php-version : ${{ env.PHP_VERSION }}
26- tools : composer
27+ tools : composer:${{ env.COMPOSER_VERSION }}, symfony-cli
2728 extensions : mbstring, gd, bcmath, soap, dom, xml, json, tokenizer, mysql, zip, xdebug
2829
2930 # Use composer cache
3031 - name : Setup - Get Composer Cache Directory
3132 id : composer-cache
3233 run : |
3334 echo "::set-output name=dir::$(composer config cache-files-dir)"
34- - uses : actions/cache@v2
35+ - uses : actions/cache@v4
3536 with :
3637 path : ${{ steps.composer-cache.outputs.dir }}
3738 key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -48,17 +49,17 @@ jobs:
4849 run : |
4950 sudo /etc/init.d/mysql start
5051 mysql -e 'CREATE DATABASE ${{ env.DB_DATABASE }};' -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }}
51- # Set Up ElasticSearch
52+ # Set Up OpenSearch
5253 - name : Setup - Configure sysctl limits
5354 run : |
5455 sudo swapoff -a
5556 sudo sysctl -w vm.swappiness=1
5657 sudo sysctl -w fs.file-max=262144
5758 sudo sysctl -w vm.max_map_count=262144
58- - name : Setup - ElasticSearch
59- uses : elastic/elastic-github-actions/elasticsearch@master
59+ - name : Setup - OpenSearch
60+ uses : ankane/setup-opensearch@v1
6061 with :
61- stack -version : ${{ env.ES_VERSION }}
62+ opensearch -version : ${{ env.OS_VERSION }}
6263
6364 # Install the latest Magento Open Source via composer
6465 - name : Setup - Install Magento Codebase
7475 - name : Setup - Copy `install-config-mysql` file
7576 run : cp ./vendor/bloomreach/bloomreach-engagement-connector-magento/.github/config/mysql-config.php ./dev/tests/integration/etc/install-config-mysql.php
7677
78+ # Security checks
79+ - name : " [Security Check] Composer Audit"
80+ run : COMPOSER_AUDIT_ABANDONED=ignore composer audit
81+ - name : " [Security Check] Security Check"
82+ run : symfony check:security
83+
7784 # Run tests
7885 - name : Test - Magento Coding Standart
7986 if : always()
0 commit comments