[Intl] [Emoji] Move emoji data in a new component #2
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: Emoji data | |
on: | |
push: | |
paths: | |
- 'src/Symfony/Component/Emoji/*.php' | |
- 'src/Symfony/Component/Emoji/Resources/data/**' | |
- 'src/Symfony/Component/Emoji/Tests/*Test.php' | |
pull_request: | |
paths: | |
- 'src/Symfony/Component/Emoji/*.php' | |
- 'src/Symfony/Component/Emoji/Resources/data/**' | |
- 'src/Symfony/Component/Emoji/Tests/*Test.php' | |
defaults: | |
run: | |
shell: bash | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
tests: | |
name: Emoji data | |
runs-on: Ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
coverage: "none" | |
extensions: "zip,intl" | |
ini-values: "memory_limit=-1" | |
php-version: "8.2" | |
- name: Install dependencies | |
run: | | |
COMPOSER_HOME="$(composer config home)" | |
([ -d "$COMPOSER_HOME" ] || mkdir "$COMPOSER_HOME") && cp .github/composer-config.json "$COMPOSER_HOME/config.json" | |
export COMPOSER_ROOT_VERSION=$(grep ' VERSION = ' src/Symfony/Component/HttpKernel/Kernel.php | grep -P -o '[0-9]+\.[0-9]+').x-dev | |
echo COMPOSER_ROOT_VERSION=$COMPOSER_ROOT_VERSION >> $GITHUB_ENV | |
echo "::group::composer update" | |
composer update --no-progress --ansi | |
echo "::endgroup::" | |
echo "::group::install phpunit" | |
./phpunit install | |
echo "::endgroup::" | |
- name: Run tests | |
run: ./phpunit src/Symfony/Component/Emoji | |
- name: Test with compressed data | |
run: | | |
[ -f src/Symfony/Component/Emoji/Resources/data/emoji/emoji-en.php ] | |
[ ! -f src/Symfony/Component/Emoji/Resources/data/emoji/emoji-en.php.gz ] | |
src/Symfony/Component/Emoji/Resources/bin/compress | |
[ ! -f src/Symfony/Component/Emoji/Resources/data/emoji/emoji-en.php ] | |
[ -f src/Symfony/Component/Emoji/Resources/data/emoji/emoji-en.php.gz ] | |
./phpunit src/Symfony/Component/Emoji |