Add AI processing, store, and search methods to DA [WEB-2934] #44
Workflow file for this run
This file contains 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: Testing | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
- master | ||
pull_request: | ||
branches: | ||
- develop | ||
- master | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
MYSQL_USER: homestead | ||
MYSQL_DB: homestead | ||
MYSQL_PASSWORD: secret | ||
MYSQL_ROOT_PASSWORD: secret | ||
services: | ||
mysql: | ||
image: mysql:8.0 | ||
env: | ||
MYSQL_ROOT_PASSWORD: ${{ env.MYSQL_ROOT_PASSWORD }} | ||
MYSQL_DATABASE: ${{ env.MYSQL_DB }} | ||
MYSQL_USER: ${{ env.MYSQL_USER }} | ||
MYSQL_PASSWORD: ${{ env.MYSQL_PASSWORD }} | ||
ports: | ||
- 3306:3306 | ||
options: >- | ||
--health-cmd="mysqladmin ping" | ||
--health-interval=10s | ||
--health-timeout=5s | ||
--health-retries=3 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Postgres | ||
id: postgres | ||
image: pgvector/pgvector:pg17 | ||
uses: ikalnytskyi/action-setup-postgres@v7 | ||
with: | ||
username: homestead | ||
password: secret | ||
database: vectors | ||
port: 5432 | ||
- name: Setup PHP with PECL extension | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.1' | ||
- name: Create environment file | ||
run: cp .env.ci .env | ||
- name: Cache Composer packages | ||
id: composer-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: vendor | ||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-php- | ||
- name: Install dependencies | ||
run: composer install --prefer-dist --no-progress | ||
- name: Generate Laravel key | ||
run: php artisan key:generate | ||
- name: Run migrations | ||
run: php artisan migrate | ||
- name: Run test suite | ||
run: vendor/bin/phpunit |