# key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- name: install dependencies
- run: 'composer install'
+ run: 'composer install --no-progress'
- name: run tests and upload coverage info if needed
run: |
sudo cat /var/log/php*.log
# Whenever a change is pushed to this library, we run as well the tests of all known packages depending on it,
- # so that we can catch any (involuntary) breackage.
+ # so that we can catch any (involuntary) breakage.
# NB: if any are detected, do not forget to mark the current versions of dependents as incompatible in composer.json
test-dependencies:
runs-on: ubuntu-20.04
// Details:
// SPACE: (#x20 | #x9 | #xD | #xA)+ === [ \x9\xD\xA]+
// EQ: SPACE?=SPACE? === [ \x9\xD\xA]*=[ \x9\xD\xA]*
+ // We could be stricter on version number: VersionNum ::= '1.' [0-9]+
if (preg_match('/^<\?xml\s+version\s*=\s*' . "((?:\"[a-zA-Z0-9_.:-]+\")|(?:'[a-zA-Z0-9_.:-]+'))" .
'\s+encoding\s*=\s*' . "((?:\"[A-Za-z][A-Za-z0-9._-]*\")|(?:'[A-Za-z][A-Za-z0-9._-]*'))/",
$xmlChunk, $matches)) {
// Details:
// SPACE: (#x20 | #x9 | #xD | #xA)+ === [ \x9\xD\xA]+
// EQ: SPACE?=SPACE? === [ \x9\xD\xA]*=[ \x9\xD\xA]*
+ // We could be stricter on version number: VersionNum ::= '1.' [0-9]+
if (preg_match('/^<\?xml\s+version\s*=\s*' . "((?:\"[a-zA-Z0-9_.:-]+\")|(?:'[a-zA-Z0-9_.:-]+'))" .
'\s+encoding\s*=\s*' . "((?:\"[A-Za-z][A-Za-z0-9._-]*\")|(?:'[A-Za-z][A-Za-z0-9._-]*'))/",
$xmlChunk)) {