|
@@ -15,7 +15,6 @@ jobs:
|
|
|
|
|
|
|
|
static-code-analysis:
|
|
static-code-analysis:
|
|
|
name: "Static Code Analysis"
|
|
name: "Static Code Analysis"
|
|
|
-
|
|
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
strategy:
|
|
@@ -26,6 +25,7 @@ jobs:
|
|
|
- "8.0"
|
|
- "8.0"
|
|
|
- "8.1"
|
|
- "8.1"
|
|
|
- "8.2"
|
|
- "8.2"
|
|
|
|
|
+ - "8.3"
|
|
|
|
|
|
|
|
env:
|
|
env:
|
|
|
PHAN_ALLOW_XDEBUG: 0
|
|
PHAN_ALLOW_XDEBUG: 0
|
|
@@ -49,11 +49,10 @@ jobs:
|
|
|
- name: "Run phan"
|
|
- name: "Run phan"
|
|
|
run: php vendor/bin/phan --target-php-version=${{ matrix.php-version }}
|
|
run: php vendor/bin/phan --target-php-version=${{ matrix.php-version }}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
tests:
|
|
tests:
|
|
|
name: "Unit Tests"
|
|
name: "Unit Tests"
|
|
|
-
|
|
|
|
|
needs: static-code-analysis
|
|
needs: static-code-analysis
|
|
|
-
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
strategy:
|
|
@@ -67,6 +66,7 @@ jobs:
|
|
|
- "8.0"
|
|
- "8.0"
|
|
|
- "8.1"
|
|
- "8.1"
|
|
|
- "8.2"
|
|
- "8.2"
|
|
|
|
|
+ - "8.3"
|
|
|
|
|
|
|
|
steps:
|
|
steps:
|
|
|
- name: "Checkout"
|
|
- name: "Checkout"
|
|
@@ -84,10 +84,12 @@ jobs:
|
|
|
uses: ramsey/composer-install@v2
|
|
uses: ramsey/composer-install@v2
|
|
|
|
|
|
|
|
- name: "Run tests with phpunit"
|
|
- name: "Run tests with phpunit"
|
|
|
- run: php vendor/bin/phpunit --configuration=phpunit.xml.dist
|
|
|
|
|
|
|
+ run: php vendor/bin/phpunit --colors=always --configuration=phpunit.xml.dist
|
|
|
|
|
|
|
|
- name: "Send code coverage report to Codecov.io"
|
|
- name: "Send code coverage report to Codecov.io"
|
|
|
uses: codecov/codecov-action@v3
|
|
uses: codecov/codecov-action@v3
|
|
|
|
|
+ with:
|
|
|
|
|
+ files: .build/coverage/clover.xml
|
|
|
|
|
|
|
|
- name: "Send code coverage report to Codacy"
|
|
- name: "Send code coverage report to Codacy"
|
|
|
uses: codacy/codacy-coverage-reporter-action@v1
|
|
uses: codacy/codacy-coverage-reporter-action@v1
|