Skip to content

fix: prevent processing of incoming messages with empty content or me… #50

fix: prevent processing of incoming messages with empty content or me…

fix: prevent processing of incoming messages with empty content or me… #50

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: PHP Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
extensions: bcmath, ctype, exif, fileinfo, gd, json, mbstring, openssl, pdo, sqlite, tokenizer, xml
coverage: none
- name: Prepare the environment
run: cp .env.example .env
- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Setup composer cache
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install composer dependencies
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Install node dependencies
run: npm ci
- name: Generate application key
run: php artisan key:generate
- name: Build assets
run: npm run build
- name: Run tests
run: php artisan test