Skip to content

ci: add automated release workflow from CHANGELOG.md #11

ci: add automated release workflow from CHANGELOG.md

ci: add automated release workflow from CHANGELOG.md #11

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
lint-php:
name: PHP Lint (Pint)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: composer:v2
- name: Ensure writable cache directory
run: mkdir -p bootstrap/cache
- run: composer install --no-progress --prefer-dist
- run: vendor/bin/pint --test
test:
name: PHPUnit
needs: lint-php
if: success()
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: composer:v2
coverage: none
- name: Ensure writable cache directory
run: mkdir -p bootstrap/cache
- run: cp .env.example .env
- run: composer install --no-progress --prefer-dist
- run: php artisan key:generate --ansi
- run: php artisan test --no-coverage
build:
name: Frontend Build
needs: lint-php
if: success()
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
- run: mkdir -p bootstrap/cache
- run: cp .env.example .env
- run: npm ci
- run: npm run build