Skip to content

Pluralization with parts always returns the first part when the translated text is composed of commas #72

Pluralization with parts always returns the first part when the translated text is composed of commas

Pluralization with parts always returns the first part when the translated text is composed of commas #72

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches:
- master
- 1.1.x
jobs:
test:
name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2]
laravel: [6.*, 7.*, 8.*, 9.*]
exclude:
# Laravel >= 6.0 doesn't support PHP 7.2 or >= 8.1
- laravel: 6.*
php: 8.1
- laravel: 6.*
php: 8.2
# Laravel >= 7.0 doesn't support PHP 7.2 or >= 8.1
- laravel: 7.*
php: 8.1
- laravel: 7.*
php: 8.2
# Laravel >= 8.0 doesn't support PHP 7.2 or >= 8.2
- laravel: 8.*
php: 7.2
- laravel: 8.*
php: 8.2
# Laravel >= 9.0 doesn't support PHP <= 7.4
- laravel: 9.*
php: 7.2
- laravel: 9.*
php: 7.3
- laravel: 9.*
php: 7.4
include:
- laravel: 6.*
testbench: 4.*
- laravel: 7.*
testbench: 5.*
- laravel: 8.*
testbench: 6.*
- laravel: 9.*
testbench: 7.*
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Cache Composer dependencies
uses: actions/cache@v1
with:
path: ~/.composer/cache/files
key: php-${{ matrix.php }}-laravel-${{ matrix.laravel }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: php-${{ matrix.php }}-laravel-${{ matrix.laravel }}-composer-
- name: Cache npm dependencies
uses: actions/cache@v1
with:
path: ~/.npm
key: npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: npm-
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --prefer-dist --no-interaction --no-progress --no-suggest
npm install
- name: Build
run: npm run build
- name: Run PHPUnit tests
run: vendor/bin/phpunit --testdox --colors=always
- name: Run Jest tests
run: npm test