Bugfix impoert soft_delete record when scout.soft_delete is true #84
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: Run Project Tests | |
on: | |
pull_request: | |
branches: [master] | |
jobs: | |
scout-import-test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
strategy: | |
matrix: | |
node-version: [16.x] | |
typesense-version: [0.24.0] | |
steps: | |
- name: Start Typesense | |
uses: jirevwe/[email protected] | |
with: | |
typesense-version: ${{ matrix.typesense-version }} | |
typesense-port: 8108 | |
typesense-api-key: xyz | |
- name: Curl Typesense | |
run: sleep 10 && curl http://localhost:8108/health | |
- name: Install MySQL client | |
run: sudo apt-get update && sudo apt-get install mysql-client | |
- name: Run MySQL client | |
run: sudo service mysql start | |
- name: Run SQL script | |
run: | | |
mysql -h 127.0.0.1 -u root -p'root' -e "CREATE DATABASE test;" | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
repository: arayiksmbatyan/scout-import-tests | |
- name: Composer Validate | |
run: composer validate | |
- name: Cache Composer Packages | |
id: composer-cache | |
uses: actions/cache@v2 | |
with: | |
path: vendor | |
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-php- | |
- name: Cache dependencies | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.npm | |
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }} | |
- name: Prepare Application Environment | |
run: | | |
cp .env.example .env | |
- name: Install Dependencies | |
run: | | |
composer update --prefer-dist --no-interaction --no-progress | |
- name: Generate Application Key | |
run: php artisan key:generate | |
- name: Run Migrations and Seeders | |
run: php artisan migrate --seed | |
- name: Run Tests | |
run: php artisan test |