Skip to content

added unescapeString method to unescape data in raw view #67

added unescapeString method to unescape data in raw view

added unescapeString method to unescape data in raw view #67

Workflow file for this run

# run unit tests with PHPUnit
name: PHPUnit Tests
on:
push:
branches:
- main
- dev
jobs:
phpunit:
name: Run PHPUnit
runs-on: ubuntu-latest
# setup mysql service
services:
mysql:
image: mysql:latest
env:
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: Checkout repository
uses: actions/checkout@v2
# setup PHP
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
extensions: mbstring, intl, pdo_mysql, pdo, zip
# install php dependencies
- name: Install dependencies
run: composer install --no-interaction --no-progress
# install frontend dependencies
- name: Install node-modules
run: npm install --loglevel=error
# build frontend assets
- name: Build assets
run: npm run build
# create database
- name: Create database
run: php bin/console doctrine:database:create --if-not-exists --env=test
# migrate database
- name: Migrate database
run: php bin/console doctrine:migrations:migrate --no-interaction --env=test
# load testing data
- name: Load fixtures
run: php bin/console doctrine:fixtures:load --no-interaction --env=test
# run PHPUnit tests
- name: Run PHPUnit tests
run: php ./bin/phpunit