This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/.github/workflows/intl-data-tests.yml

51 lines
1.3 KiB
YAML
Raw Normal View History

name: Intl data tests
on:
2021-02-25 19:32:02 +00:00
push:
paths:
- 'src/Symfony/Component/Intl/Resources/data/**'
pull_request:
paths:
- 'src/Symfony/Component/Intl/Resources/data/**'
2021-02-25 19:32:02 +00:00
defaults:
run:
shell: bash
2021-02-25 19:32:02 +00:00
jobs:
tests:
name: Tests (intl-data)
2021-03-02 09:27:35 +00:00
runs-on: Ubuntu-20.04
2021-02-25 19:32:02 +00:00
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Define the ICU version
run: |
SYMFONY_ICU_VERSION=$(php -r 'require "src/Symfony/Component/Intl/Intl.php"; echo Symfony\Component\Intl\Intl::getIcuStubVersion();')
echo "SYMFONY_ICU_VERSION=$SYMFONY_ICU_VERSION" >> $GITHUB_ENV
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
coverage: "none"
extensions: "zip,intl-${{env.SYMFONY_ICU_VERSION}}"
ini-values: "memory_limit=-1"
php-version: "7.4"
- name: Install dependencies
run: |
echo "::group::composer update"
composer update --no-progress --no-suggest --ansi
echo "::endgroup::"
echo "::group::install phpunit"
./phpunit install
echo "::endgroup::"
- name: Report the ICU version
run: icu-config --version && php -i | grep 'ICU version'
- name: Run intl-data tests
run: ./phpunit --group intl-data -v