Possibly prevent a redirect loop by sending the user to the logout pa… #44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: main | |
on: | |
push: | |
jobs: | |
tests: | |
name: PHPUnit | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.1 | |
- uses: actions/checkout@v3 | |
- name: "Get Composer Cache Directory" | |
id: composer-cache | |
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- 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 PHP dependencies" | |
run: | | |
composer install --no-interaction --prefer-dist | |
- name: "PHPCS (PSR-12, Slevomat)" | |
run: | | |
composer phpcs | |
- name: "PHPStan" | |
run: | | |
composer phpstan | |
- name: "PHPUnit with coverage clover" | |
run: | | |
composer phpunitwcov | |
- uses: codecov/codecov-action@v2 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage/clover.xml | |
flags: unittests | |
name: codecov-umbrella | |
fail_ci_if_error: true | |
- name: "Coverage check" | |
run: | | |
composer phpcoverage |