mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
26 lines
717 B
YAML
26 lines
717 B
YAML
name: GraphQL Schema
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
graphql:
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
- uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: '8.5'
|
|
tools: dom, curl, libxml, mbstring, zip, pcntl, pdo
|
|
- uses: actions/checkout@v3
|
|
- name: Copy .env
|
|
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
|
|
- name: Install Dependencies
|
|
run: |
|
|
composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
|
|
- name: Directory Permissions
|
|
run: chmod -R 777 storage bootstrap/cache
|
|
- name: Validate GraphQL Schema via Lighthouse
|
|
run: |
|
|
php artisan lighthouse:validate-schema
|