diff --git a/.gitattributes b/.gitattributes index 8508be4..87b1306 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,8 +1,8 @@ * text=auto eol=lf -.gitattributes export-ignore .codeclimate.yml export-ignore -.github 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.yml b/.github/workflows/php.yml index 781ade6..1ebc88b 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -23,10 +23,10 @@ jobs: phpunit: '11.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: @@ -35,6 +35,7 @@ jobs: ini-values: error_reporting=E_ALL coverage: pcov tools: composer:v2 + - name: Validate composer.json and composer.lock run: composer validate @@ -47,6 +48,6 @@ jobs: #- name: Run type checker # run: ./vendor/bin/psalm - + - name: Run unit tests run: ./vendor/bin/phpunit --testdox --no-coverage diff --git a/.github/workflows/php_coverage.yml b/.github/workflows/php_coverage.yml index 5c30db8..bf3c8bb 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.3 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: