mirror of
https://github.com/the-programmers-hangout/Mimic.git
synced 2026-09-04 09:16:00 +02:00
47 lines
988 B
YAML
47 lines
988 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: ["**"]
|
|
pull_request:
|
|
|
|
jobs:
|
|
quality:
|
|
name: PHP ${{ matrix.php }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
php: ["8.2", "8.3"]
|
|
|
|
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.2'
|
|
run: composer ci:build
|
|
|
|
- name: Upload build artifact
|
|
if: matrix.php == '8.2'
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: laracord-build-php82
|
|
path: builds/laracord
|
|
if-no-files-found: error
|