Skip to content

Bump the js-dependencies group with 2 updates (#213) #710

Bump the js-dependencies group with 2 updates (#213)

Bump the js-dependencies group with 2 updates (#213) #710

Workflow file for this run

name: Tests
on:
push:
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
env:
DB_CONNECTION: sqlite
SCOUT_DRIVER: meilisearch
MEILISEARCH_HOST: "http://127.0.0.1:7700"
MEILISEARCH_KEY: masterKey
services:
meilisearch:
image: getmeili/meilisearch:latest
ports:
- 7700:7700
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
tools: composer:v2
coverage: none
- name: Install Composer dependencies
run: composer install --prefer-dist --no-interaction --no-suggest
- name: Run migrations
run: |
touch database/database.sqlite
php artisan migrate --force
- name: Cache icons
run: php artisan icons:cache
- name: Import icon sets
run: php artisan icons:import
- name: Index icons
run: |
php artisan scout:index icons
php artisan scout:import "App\\Models\\Icon"
- name: Install NPM dependencies
run: npm install
- name: Compile assets
run: npm run build
- name: Execute tests
run: vendor/bin/phpunit
- name: Deploy
if: github.ref == 'refs/heads/main'
run: curl ${{ secrets.ENVOYER_HOOK }}?sha=${{ github.sha }}