Skip to content

Commit

Permalink
Merge pull request #209 from jessarcher/master
Browse files Browse the repository at this point in the history
Update to Laravel 11, Inertia 1.0, Tailwind 3.0, and Vite
  • Loading branch information
reinink authored Apr 13, 2024
2 parents 58eed58 + db32429 commit 3f8ce12
Show file tree
Hide file tree
Showing 117 changed files with 6,404 additions and 20,272 deletions.
25 changes: 20 additions & 5 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,20 @@ APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_TIMEZONE=UTC
APP_URL=http://localhost

APP_LOCALE=en
APP_FALLBACK_LOCALE=en
APP_FAKER_LOCALE=en_US

APP_MAINTENANCE_DRIVER=file
APP_MAINTENANCE_STORE=database

BCRYPT_ROUNDS=12

LOG_CHANNEL=stack
LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

Expand All @@ -15,12 +26,15 @@ DB_CONNECTION=sqlite
#DB_USERNAME=root
#DB_PASSWORD=

BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DRIVER=local
BROADCAST_CONNECTION=log
CACHE_STORE=file
FILESYSTEM_DISK=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
SESSION_ENCRYPT=false
SESSION_PATH=/
SESSION_DOMAIN=null

MEMCACHED_HOST=127.0.0.1

Expand Down Expand Up @@ -48,5 +62,6 @@ PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1

MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
VITE_APP_NAME="${APP_NAME}"
VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
7 changes: 7 additions & 0 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: fix code styling

on: [push]

jobs:
lint:
uses: laravel/.github/.github/workflows/coding-standards.yml@main
14 changes: 14 additions & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: static analysis

on:
push:
branches:
- master
pull_request:

permissions:
contents: read

jobs:
tests:
uses: laravel/.github/.github/workflows/static-analysis.yml@main
79 changes: 79 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: tests

on:
push:
branches:
- master
pull_request:
schedule:
- cron: '0 0 * * *'

jobs:
test:
services:
mysql:
image: mysql:8.0
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: test
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3

strategy:
matrix:
operating-system:
- ubuntu-latest
php-version:
- '8.2'

name: PHP ${{ matrix.php-version }} on ${{ matrix.operating-system }}

runs-on: ${{ matrix.operating-system }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: bcmath, ctype, exif, fileinfo, gd, json, mbstring, openssl, pdo, tokenizer, xml
coverage: none

- name: Prepare the environment
run: cp .env.example .env

- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Setup composer cache
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install composer dependencies
env:
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Install node dependencies
run: npm ci

- name: Generate application key
run: php artisan key:generate

- name: Build assets
run: npm run build

- name: Run tests
run: php artisan test
env:
DB_CONNECTION: mysql
DB_PORT: ${{ job.services.mysql.ports['3306'] }}
DB_USERNAME: root
DB_DATABASE: test
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/bootstrap/ssr
/node_modules
/public/css
/public/hot
/public/js
/public/mix-manifest.json
/public/build
/public/storage
/storage/*.key
/vendor
Expand All @@ -16,6 +15,5 @@ docker-compose.override.yml
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
/.idea
/.vscode
190 changes: 0 additions & 190 deletions .php-cs-fixer.dist.php

This file was deleted.

32 changes: 0 additions & 32 deletions app/Console/Kernel.php

This file was deleted.

Loading

0 comments on commit 3f8ce12

Please sign in to comment.