FRW-11115: Fixes to CI after migration to new monorepository (#3) #118
  
    
      This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| validation: | |
| name: Validation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.4' | |
| extensions: mbstring, intl, bcmath | |
| coverage: none | |
| - name: Composer Install | |
| run: composer install --prefer-dist --no-interaction --profile | |
| - name: Run validation | |
| run: composer validate | |
| - name: Syntax check | |
| run: find ./src -path src -prune -o -type f -name '*.php' -print0 | xargs -0 -n1 -P4 php -l -n | (! grep -v "No syntax errors detected" ) | |
| lowest: | |
| name: Prefer Lowest | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.3' | |
| extensions: mbstring, intl, bcmath | |
| coverage: none | |
| - name: Composer Install | |
| run: composer install --prefer-dist --no-interaction --profile | |
| - name: Composer Update | |
| run: composer update --prefer-lowest --prefer-dist --no-interaction --profile -vvv |