github actions

This commit is contained in:
Azaria
2026-02-19 18:14:18 +00:00
parent bba1530de1
commit ba577fc914
5 changed files with 125 additions and 2 deletions
+48
View File
@@ -0,0 +1,48 @@
name: CI
on:
push:
branches: ["**"]
pull_request:
jobs:
quality:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ["8.4"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
- name: Validate composer.json
run: composer validate --strict
- name: Install dependencies
run: composer install --no-interaction --no-progress --prefer-dist
- name: Run CI checks
run: composer ci
- name: Build app
if: matrix.php == '8.4'
env:
APP_ENV: development
run: php laracord app:build
- name: Upload build artifact
if: matrix.php == '8.4'
uses: actions/upload-artifact@v4
with:
name: laracord-build-php84
path: builds/laracord
if-no-files-found: error