Skip to content

Use flash exception to handle unauthorized error message #122

Use flash exception to handle unauthorized error message

Use flash exception to handle unauthorized error message #122

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
PestTests:
runs-on: ubuntu-latest
strategy:
max-parallel: 6
matrix:
php: ['8.1', '8.2']
db: ['mysql:8.0', 'mariadb:10.6']
include:
- db: 'mysql:8.0'
dbName: 'MySQL'
- db: 'mariadb:10.6'
dbName: 'MariaDB'
fail-fast: false
services:
mysql:
image: ${{ matrix.db }}
ports:
- 3306
name: 'PHP Tests ${{ matrix.php }} / ${{ matrix.dbName }}'
steps:
- name: Checkout changes
uses: actions/checkout@v1
- name: Create MySQL Database
run: |
sudo systemctl start mysql
mysql -u${{ env.DB_USERNAME }} -p${{ env.DB_PASSWORD }} -e 'CREATE DATABASE ${{ env.DB_DATABASE }};' --port ${{ env.DB_PORT }}
- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php }}
extensions: mbstring, intl, gd, xml, sqlite
- name: Install composer dependencies
run: composer install --no-interaction --prefer-dist --no-progress --no-scripts
- name: Run Pest Test Suite
run: composer test --parallel
env:
DB_PORT: 3306
DB_DATABASE: test
DB_USERNAME: root
DB_PASSWORD: root
DB_PREFIX: 'ti_'
IGNITER_LOCATION_MODE: multiple