diff options
author | Andrew Dolgov <[email protected]> | 2022-03-22 12:24:31 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-03-22 12:24:31 +0300 |
commit | 1c4f7ab3b838b23afb2ee4dab14acbf75956e952 (patch) | |
tree | 0a19274107d717efe92d2c0376cd3105fead5a11 /vendor/webmozart/assert/.github/workflows | |
parent | 711662948768492e8d05b778a7d80eacaec368d2 (diff) |
* add phpunit as a dev dependency
* add some basic tests for UrlHelper::rewrite_relative()
* fix UrlHelper::rewrite_relative() to work better on non-absolute
relative URL paths
Diffstat (limited to 'vendor/webmozart/assert/.github/workflows')
-rw-r--r-- | vendor/webmozart/assert/.github/workflows/ci.yaml | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/vendor/webmozart/assert/.github/workflows/ci.yaml b/vendor/webmozart/assert/.github/workflows/ci.yaml new file mode 100644 index 000000000..636fc5ab5 --- /dev/null +++ b/vendor/webmozart/assert/.github/workflows/ci.yaml @@ -0,0 +1,120 @@ +# https://docs.github.com/en/actions + +name: "CI" + +on: + pull_request: ~ + push: + branches: + - "master" + +env: + COMPOSER_ROOT_VERSION: 1.99 + +jobs: + coding-standards: + name: "Coding Standards" + + runs-on: "ubuntu-latest" + + steps: + - name: "Checkout" + uses: "actions/[email protected]" + + - name: "Install PHP" + uses: "shivammathur/[email protected]" + with: + coverage: "none" + extensions: "mbstring" + php-version: "7.4" + tools: "composer-normalize" + + - name: "Validate composer.json" + run: "composer validate --strict" + + - name: "Normalize composer.json" + run: "composer-normalize --dry-run" + + - name: "PHP-CS-Fixer" + uses: "docker://oskarstark/php-cs-fixer-ga:2.18.0" + with: + args: "--dry-run --diff-format udiff" + + static-code-analysis: + name: "Static Code Analysis" + + runs-on: "ubuntu-latest" + + steps: + - name: "Checkout" + uses: "actions/[email protected]" + + - name: "Install PHP" + uses: "shivammathur/[email protected]" + with: + coverage: "none" + extensions: "mbstring" + php-version: "7.4" + + - name: "Install dependencies with composer" + run: "composer update --no-interaction --no-progress && composer i --working-dir=ci" + + - name: "Run vimeo/psalm" + run: "ci/vendor/bin/psalm --threads=4" + + tests: + name: "Tests" + + runs-on: "ubuntu-latest" + + strategy: + matrix: + php-version: + - "7.2" + - "7.3" + - "7.4" + - "8.0" + + steps: + - name: "Checkout" + uses: "actions/[email protected]" + + - name: "Install PHP" + uses: "shivammathur/[email protected]" + with: + coverage: "none" + extensions: "mbstring" + php-version: "${{ matrix.php-version }}" + + - name: "Install dependencies with composer" + run: "composer update --no-interaction --no-progress" + + - name: "Run unit tests" + run: "vendor/bin/phpunit" + + windows-tests: + name: "Windows tests" + + runs-on: "windows-latest" + + strategy: + matrix: + php-version: + - "7.4" + + steps: + - name: "Checkout" + uses: "actions/[email protected]" + + - name: "Install PHP" + uses: "shivammathur/[email protected]" + with: + coverage: "none" + extensions: "mbstring" + php-version: "${{ matrix.php-version }}" + + - name: "Install dependencies with composer" + run: "composer update --no-interaction --no-progress" + + - name: "Run unit tests" + run: "vendor/bin/phpunit tests/AssertTest.php" |