Fix Xss in the segment name #678
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: "Codeception Tests" | |
on: | |
pull_request: | |
branches: | |
- "*.*" | |
- "master" | |
push: | |
branches: | |
- "*.*" | |
- "master" | |
- "*_actions" | |
env: | |
PIMCORE_PROJECT_ROOT: ${{ github.workspace }} | |
APP_ENV: test | |
PIMCORE_TEST: 1 | |
PIMCORE_TEST_DB_DSN: "mysql://[email protected]:33006/pimcore_test" | |
PIMCORE_TEST_REDIS_DSN: "redis://127.0.0.1:63379" | |
jobs: | |
codeception-tests: | |
name: "Codeception tests" | |
runs-on: "ubuntu-20.04" | |
continue-on-error: ${{ matrix.experimental }} | |
# env: | |
# PIMCORE_TEST_DB_DSN: "mysql://[email protected]:33006/pimcore_test?serverVersion=${{ matrix.server_version }}" | |
strategy: | |
matrix: | |
include: | |
- { php-version: 8.0, database: "mariadb:10.5", server_version: "5.5.5-10.5.0-MariaDB-0+deb10u1-log", pimcore_version: "", dependencies: lowest, experimental: false } | |
- { php-version: 8.1, database: "mariadb:10.5", server_version: "5.5.5-10.5.0-MariaDB-0+deb10u1-log", pimcore_version: "", dependencies: highest, experimental: false } | |
# - { php-version: 8.0, database: "mariadb:10.3", dependencies: lowest, experimental: false } | |
# - { php-version: 8.0, database: "mysql:5.7", dependencies: lowest, experimental: false } | |
# - { php-version: 8.0, database: "mysql:8.0", dependencies: lowest, experimental: false } | |
# - { php-version: 8.0, database: "percona:8.0", dependencies: lowest, experimental: false } | |
services: | |
redis: | |
image: redis | |
ports: | |
- 63379:6379 | |
mariadb: | |
image: "${{ matrix.database }}" | |
ports: | |
- 33006:3306 | |
env: | |
MYSQL_ALLOW_EMPTY_PASSWORD: yes | |
steps: | |
- name: "Checkout code" | |
uses: "actions/checkout@v2" | |
- name: "Install PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
coverage: "none" | |
extensions: imagick | |
ini-values: display_errors=On, display_startup_errors=On, error_reporting=32767 | |
php-version: "${{ matrix.php-version }}" | |
- name: Verify MariaDB connection | |
run: | | |
cp .github/ci/files/.my.cnf ~/.my.cnf | |
while ! mysqladmin ping --silent; do | |
sleep 1 | |
done | |
- name: "Setup Pimcore environment" | |
env: | |
DEPENDENCIES: "${{ matrix.dependencies }}" | |
run: | | |
mysql -e "CREATE DATABASE pimcore_test CHARSET=utf8mb4;" | |
.github/ci/scripts/setup-environment.sh | |
- name: "Update Pimcore version" | |
env: | |
PIMCORE_VERSION: "${{ matrix.pimcore_version }}" | |
run: | | |
if [ ! -z "$PIMCORE_VERSION" ]; then | |
composer require --no-update pimcore/pimcore:"${PIMCORE_VERSION} as 10.99.9" | |
fi | |
- name: "Install dependencies with Composer" | |
uses: "ramsey/composer-install@v2" | |
with: | |
dependency-versions: "${{ matrix.dependencies }}" | |
- name: "Test environment infos" | |
run: | | |
mysql -e "SELECT VERSION();" | |
php -i | |
./bin/console pimcore:system:requirements:check | |
- name: "Sync Metadata Storage" | |
run: | | |
bin/console doctrine:migrations:sync-metadata-storage -vvv | |
- name: "Run Codeception" | |
run: "vendor/bin/codecept run -c . -vvv --json" |