2727 uses : " shivammathur/setup-php@v2"
2828 with :
2929 coverage : " xdebug"
30- extensions : " none, curl, dom, json, mbstring, tokenizer, xml, xmlwriter"
30+ extensions : " none, curl, dom, json, mbstring, simplexml, tokenizer, xml, xmlwriter"
3131 php-version : " ${{ matrix.php-version }}"
3232
3333 - name : " Set up problem matchers for PHP"
7272 uses : " shivammathur/setup-php@v2"
7373 with :
7474 coverage : " none"
75- extensions : " none, curl, dom, json, mbstring, tokenizer, xml, xmlwriter"
75+ extensions : " none, curl, dom, json, mbstring, simplexml, tokenizer, xml, xmlwriter"
7676 php-version : " ${{ matrix.php-version }}"
7777
7878 - name : " Set up problem matchers for PHP"
9797 - name : " Run friendsofphp/php-cs-fixer"
9898 run : " vendor/bin/php-cs-fixer fix --ansi --config=.php-cs-fixer.php --diff --dry-run --show-progress=dots --verbose"
9999
100+ static-code-analysis :
101+ name : " Static Code Analysis"
102+
103+ runs-on : " ubuntu-latest"
104+
105+ strategy :
106+ matrix :
107+ php-version :
108+ - " 8.2"
109+
110+ dependencies :
111+ - " locked"
112+
113+ steps :
114+ - name : " Checkout"
115+ uses : " actions/checkout@v3"
116+
117+ - name : " Set up PHP"
118+ uses : " shivammathur/setup-php@v2"
119+ with :
120+ coverage : " none"
121+ extensions : " none, curl, dom, json, mbstring, opcache, pcntl, posix, simplexml, tokenizer, xml, xmlwriter"
122+ php-version : " ${{ matrix.php-version }}"
123+
124+ - name : " Set up problem matchers for PHP"
125+ run : " echo \" ::add-matcher::${{ runner.tool_cache }}/php.json\" "
126+
127+ - name : " Determine composer cache directory"
128+ run : " echo \" COMPOSER_CACHE_DIR=$(composer config cache-dir)\" >> $GITHUB_ENV"
129+
130+ - name : " Cache dependencies installed with composer"
131+ uses : " actions/cache@v3"
132+ with :
133+ path : " ${{ env.COMPOSER_CACHE_DIR }}"
134+ key : " php-${{ matrix.php-version }}-composer-${{ hashFiles('composer.lock') }}"
135+ restore-keys : " php-${{ matrix.php-version }}-composer-"
136+
137+ - name : " Install dependencies with composer"
138+ run : " composer install --ansi --no-interaction --no-progress"
139+
140+ - name : " Run vimeo/psalm"
141+ run : " vendor/bin/psalm --config=psalm.xml --output-format=github --shepherd --show-info=false --stats --threads=4"
142+
100143 tests :
101144 name : " Tests"
102145
@@ -118,7 +161,7 @@ jobs:
118161 uses : " shivammathur/setup-php@v2"
119162 with :
120163 coverage : " none"
121- extensions : " none, curl, dom, json, mbstring, tokenizer, xml, xmlwriter"
164+ extensions : " none, curl, dom, json, mbstring, simplexml, tokenizer, xml, xmlwriter"
122165 php-version : " ${{ matrix.php-version }}"
123166
124167 - name : " Set up problem matchers for PHP"
0 commit comments