[1.x] Replace GLOB_BRACE
with a more robust solution
#5989
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: 🔎 Static Analysis | |
on: | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
psalm: | |
name: Run Analysis | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Composer Dependencies | |
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | |
- name: Run Psalm | |
id: analysis | |
run: vendor/bin/psalm --show-info=true > psalmout.txt || exit 0 | |
- name: Print Psalm output | |
run: cat psalmout.txt | |
# Send the reports to the CI server to calculate type coverage and send back commit status checks | |
- name: Ping CI server with type coverage results | |
if: github.event.repository.full_name == 'hydephp/develop' | |
run: php monorepo/scripts/ping-ci-server-with-type-coverage.php ${{ secrets.CI_SERVER_TOKEN }} ${{ github.event.pull_request.head.sha }} ${{ github.head_ref }} ${{ github.run_id }} | |
type-coverage: | |
name: Check Type Coverage | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Composer Dependencies | |
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | |
- name: Run Pest Type Coverage | |
run: ./vendor/bin/pest --type-coverage |