Skip to content

Update Version

Update Version #149

Workflow file for this run

name: Pest Tests
on: [push]
jobs:
pest-php:
runs-on: ubuntu-latest
env:
APP_URL: "http://127.0.0.1:8000"
DB_USERNAME: root
DB_PASSWORD: root
MAIL_MAILER: log
steps:
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
with:
php-version: '8.2'
- uses: actions/checkout@v4
- name: Prepare The Environment
run: cp .env.example .env
- name: Create Database
run: |
sudo systemctl start mysql
mysql --user="root" --password="root" -e "CREATE DATABASE \`pr0poll\` character set UTF8mb4 collate utf8mb4_bin;"
- name: Install Composer
uses: php-actions/composer@v6
with:
php_extensions: intl zip sodium pcntl bcmath
php_version: "8.2"
args: --ignore-platform-req=ext-pcntl --ignore-platform-req=ext-bcmath --no-progress --prefer-dist --optimize-autoloader
- name: Generate Application Key
run: php artisan key:generate
- name: Run Pest Tests
run: php artisan test