Skip to content

Properly sort enum cases based on their current name, instead of the name it would after current transliteration (Enum keys never change for BC) #201

Properly sort enum cases based on their current name, instead of the name it would after current transliteration (Enum keys never change for BC)

Properly sort enum cases based on their current name, instead of the name it would after current transliteration (Enum keys never change for BC) #201

name: Specs
on:
push:
branches: [ main ]
pull_request:
types: [ opened, synchronize ]
branches: [ main ]
env:
PHP_VERSION: '8.3'
GH_TOKEN: ${{ github.token }}
COMPOSER_ROOT_VERSION: dev-main # see https://getcomposer.org/doc/articles/troubleshooting.md#dependencies-on-the-root-package
jobs:
specs-regenerate:
name: Regenerate specs
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
spec:
- "country"
- "currency"
- "eu"
- "http-methods"
- "http-status-codes"
- "language"
- "language-extensive"
- "language-subtag"
- "php-regex-script"
- "scripts"
- "tld"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ env.PHP_VERSION }}
coverage: none
- name: Install dependencies
uses: ramsey/composer-install@v3
- name: Update spec
run: composer run update-spec-${{ matrix.spec }}
- name: Check for changes
run: git diff --exit-code