Fix login action if attempt throws an exception #107
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: Tests | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php-versions: ['8.1', '8.2', '8.3', '8.4'] | |
| kirby-versions: ['^3.5', '^4.0', '5.0.0-rc.1'] | |
| exclude: | |
| - kirby-versions: '^3.5' | |
| php-versions: '8.4' | |
| - kirby-versions: '5.0.0-rc.1' | |
| php-versions: '8.1' | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| - name: Validate composer.json and composer.lock | |
| run: composer validate --strict | |
| - name: Remove vendor directory | |
| run: rm -rf vendor | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-progress --no-plugins | |
| - name: Install Kirby Version | |
| run: composer require -w getkirby/cms:${{ matrix.kirby-versions }} | |
| - name: Run test suite | |
| run: vendor/bin/phpunit |