Skip to content

Commit 1b0a077

Browse files
committed
Set up CI
1 parent 7bd0ffc commit 1b0a077

38 files changed

+888
-1303
lines changed

.github/workflows/ci.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
on: [push]
3+
jobs:
4+
ci:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- uses: shivammathur/setup-php@v2
9+
with:
10+
php-version: 8.2
11+
extensions: json, dom, curl, libxml, mbstring
12+
coverage: none
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version-file: '.nvmrc'
16+
- name: Prepare The Environment
17+
run: cp .env.example .env
18+
- name: Install Composer Dependencies
19+
run: composer install --no-progress --prefer-dist --optimize-autoloader
20+
- name: Install Node Dependencies
21+
run: npm ci
22+
- name: Generate Keys
23+
run: php artisan key:generate
24+
- name: Run Duster Lint
25+
uses: tighten/duster-action@v3
26+
with:
27+
args: lint
28+
- name: Run Node Lint
29+
run: npm run lint
30+
- name: Run Static Analysis
31+
run: ./vendor/bin/phpstan analyse
32+
- name: Run Node Build
33+
run: npm run build

.prettierrc.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"trailingComma": "all",
5+
"plugins": ["prettier-plugin-blade", "prettier-plugin-tailwindcss"],
6+
"overrides": [
7+
{
8+
"files": ["*.blade.php"],
9+
"options": {
10+
"parser": "blade"
11+
}
12+
}
13+
]
14+
}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Noel De Martin
1+
# Noel De Martin ![CI](https://github.com/noeldemartin/noeldemartin.com/actions/workflows/ci.yml/badge.svg)
22

33
WIP

bootstrap/app.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
return Application::configure(basePath: dirname(__DIR__))
88
->withRouting(
9-
web: __DIR__.'/../routes/web.php',
10-
commands: __DIR__.'/../routes/console.php',
9+
web: __DIR__ . '/../routes/web.php',
10+
commands: __DIR__ . '/../routes/console.php',
1111
health: '/up',
1212
)
1313
->withMiddleware(function (Middleware $middleware) {

composer.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@
1717
"require-dev": {
1818
"barryvdh/laravel-debugbar": "^3.8.1",
1919
"fakerphp/faker": "^1.23",
20+
"larastan/larastan": "^3.0",
2021
"laravel/pail": "^1.1",
2122
"laravel/pint": "^1.13",
2223
"laravel/sail": "^1.26",
2324
"mockery/mockery": "^1.6",
2425
"nunomaduro/collision": "^8.1",
2526
"phpunit/phpunit": "^11.0.1",
26-
"spatie/laravel-ignition": "^2.4"
27+
"spatie/laravel-ignition": "^2.4",
28+
"tightenco/duster": "^3.1"
2729
},
2830
"autoload": {
2931
"psr-4": {
@@ -53,9 +55,6 @@
5355
"@php artisan key:generate --ansi",
5456
"@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\""
5557
],
56-
"post-update-cmd": [
57-
"@php artisan vendor:publish --tag=laravel-assets --ansi --force"
58-
],
5958
"dev": [
6059
"Composer\\Config::disableProcessTimeout",
6160
"npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan pail --timeout=0\" \"npm run dev\" --names=server,queue,logs,vite"

0 commit comments

Comments
 (0)