Skip to content

chore: Fix docblocks in UrlCheck #32

chore: Fix docblocks in UrlCheck

chore: Fix docblocks in UrlCheck #32

Workflow file for this run

name: Tests
on: [push]
jobs:
phpunit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.1']
steps:
- uses: actions/checkout@v2
- name: Setup PHP with tools
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, iconv, intl
tools: phpunit:9.5
- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer install -n --prefer-dist
- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: PHPUnit Tests
run: phpunit --coverage-text --coverage-clover=coverage.clover
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.clover
verbose: true
- name: Upload Coverage to CodeClimate
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageLocations: |
${{ github.workspace }}/coverage.clover:clover