Skip to content

add commands and jobs to import existing anystack data #17

add commands and jobs to import existing anystack data

add commands and jobs to import existing anystack data #17

Workflow file for this run

# Unit and features tests
# also useful for testing new php versions
name: Tests
on:
workflow_dispatch:
push:
branches-ignore:
- 'dependabot/npm_and_yarn/*'
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
php: [ 8.3 ]
# services:
# redis:
# image: redis
# ports:
# - 6379:6379
# options: --health-cmd="redis-cli ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: xdebug
- name: Copy .env
run: cp .env.example .env
- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer-
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Generate Application Key
run: php artisan key:generate
- name: Compile Assets
run: npm install && npm run build
- name: Run tests
env:
DB_CONNECTION: sqlite
DB_DATABASE: ":memory:"
QUEUE_CONNECTION: sync
run: ./vendor/bin/phpunit --testdox