Skip to content

Bump the php-dependencies group with 4 updates #1043

Bump the php-dependencies group with 4 updates

Bump the php-dependencies group with 4 updates #1043

Workflow file for this run

name: Tests
on:
push:
branches:
- main
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
dependabot:
needs: [tests]
permissions:
pull-requests: write
contents: write
uses: driesvints/github-workflows/.github/workflows/dependabot.yml@main
secrets:
gh_token: ${{ secrets.GITHUB_TOKEN }}
deploy:
needs: [tests]
runs-on: ubuntu-latest
steps:
- name: Deploy
if: github.ref == 'refs/heads/main'
run: curl ${{ secrets.ENVOYER_HOOK }}?sha=${{ github.sha }}