From d13c5044e5cecc22dc922ae5534d56820c5a4d83 Mon Sep 17 00:00:00 2001 From: Martins Sipenko Date: Sat, 4 Mar 2023 08:22:48 +0200 Subject: [PATCH 1/3] House cleaning --- .gitattributes | 3 ++- .github/workflows/php_coverage.yml | 6 +++--- .gitignore | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitattributes b/.gitattributes index b6d55ad..87b1306 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,7 +1,8 @@ * text=auto eol=lf -.gitattributes export-ignore .codeclimate.yml export-ignore +.gitattributes export-ignore +.github/ export-ignore .gitignore export-ignore .travis.yml export-ignore phpunit.xml export-ignore diff --git a/.github/workflows/php_coverage.yml b/.github/workflows/php_coverage.yml index aa8d8c1..d9e154b 100644 --- a/.github/workflows/php_coverage.yml +++ b/.github/workflows/php_coverage.yml @@ -1,4 +1,4 @@ -name: Unit tests +name: Code coverage on: push: @@ -17,10 +17,10 @@ jobs: php-version: 8.0 extensions: mbstring, intl, json coverage: pcov - + - name: Install dependencies run: composer install --prefer-dist --no-progress --no-suggest - + - name: Test & publish code coverage uses: paambaati/codeclimate-action@v3.0.0 env: diff --git a/.gitignore b/.gitignore index b7878e0..204d65b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ /build/ /composer.lock /vendor/ +/.phpunit.cache/ .phpunit.result.cache /.idea/ From 5b773472187348007bbfa467c476f3252be55adf Mon Sep 17 00:00:00 2001 From: Martins Sipenko Date: Sat, 4 Mar 2023 08:27:43 +0200 Subject: [PATCH 2/3] Added spacing --- .github/workflows/php.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 5287744..fbe0112 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -19,10 +19,10 @@ jobs: phpunit: '10.0' runs-on: ubuntu-latest name: PHP ${{ matrix.php }}, PHPUnit ${{ matrix.phpunit }} - + steps: - uses: actions/checkout@v1 - + - name: Setup PHP uses: shivammathur/setup-php@v2 with: @@ -31,6 +31,7 @@ jobs: ini-values: error_reporting=E_ALL coverage: pcov tools: composer:v2 + - name: Validate composer.json and composer.lock run: composer validate @@ -43,6 +44,6 @@ jobs: #- name: Run type checker # run: ./vendor/bin/psalm - + - name: Run unit tests run: ./vendor/bin/phpunit --testdox --no-coverage From be3b5ffde13d6eda8dceeeda75d1c61e068abd02 Mon Sep 17 00:00:00 2001 From: Martins Sipenko Date: Sat, 4 Mar 2023 08:32:10 +0200 Subject: [PATCH 3/3] revert --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index 204d65b..b7878e0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ /build/ /composer.lock /vendor/ -/.phpunit.cache/ .phpunit.result.cache /.idea/