Skip to content

wip

wip #12

Workflow file for this run

name: Run Tests
on:
pull_request:
branches:
- main
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/[email protected]
- name: Setup PHP and Composer
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
tools: composer:v2
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, redis, igbinary, msgpack, lzf, zstd, lz4, memcached, gmp, :php-psr
- name: Install Project Dependencies
run: composer install -q --no-interaction --no-progress
- name: Copy Environment File
run: cp .env.example .env
- name: Generate Application Key
run: php artisan key:generate
- name: Run Tests
env:
DB_CONNECTION: sqlite
DB_DATABASE: ":memory:"
run: php artisan test