Skip to content

Commit

Permalink
feat: 📦️ Add Laravel lang package #205 (#206)
Browse files Browse the repository at this point in the history
* feat: 📦️ Add Laravel lang package #205

* feat: 🎨 Laravel Pint by GitHub Actions

* feat: ♻️ Refactored CI workflow to run Laravel Pint and ESLint tests

* feat: ♻️ update ESLint command in CI workflow

* fix: 🎨 remove unnecessary comment

* feat: ✅ update test case for redirect response

---------

Co-authored-by: GitHub Actions Bot <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
cbouvat and github-actions[bot] authored Oct 19, 2023
1 parent 2624964 commit 658ed6d
Show file tree
Hide file tree
Showing 21 changed files with 2,031 additions and 140 deletions.
27 changes: 2 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,7 @@ jobs:
- name: Install PHP dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Laravel Pint
run: ./vendor/bin/pint
- name: Commit changes
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add -A
if git diff-index --quiet HEAD; then
echo "No changes detected."
else
git commit -m "feat: 🎨 Laravel Pint by GitHub Actions"
git push
fi
run: ./vendor/bin/pint --test
larastan:
name: PHP - Larastan
runs-on: ubuntu-latest
Expand Down Expand Up @@ -73,19 +62,7 @@ jobs:
- name: Install Node dependencies
run: npm ci
- name: ESLint
run: npm run lint
continue-on-error: true
- name: Commit changes
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add -A
if git diff-index --quiet HEAD; then
echo "No changes detected."
else
git commit -m "feat: 🎨 ESLint by GitHub Actions"
git push
fi
run: npm run eslint
build:
name: JS - Test build assets
runs-on: ubuntu-latest
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ down: ## Stop and remove all containers
docker compose down --remove-orphans
@echo "🛑 Socya are stopped and removed"

eslint: ## Run eslint
docker compose run --rm node npm run eslint

help: ## Display this help
@echo "📖 Socya help"
@echo "✍️ Usage: make [command]"
Expand Down Expand Up @@ -74,6 +77,9 @@ upd: ## Create and start all containers (in background)

upgrade: pull build ## Upgrade containers (pull and build)

pint: ## Run Laravel Pint
docker compose run --rm php ./vendor/bin/pint

pull: ## Pull all containers
docker compose pull

Expand Down
2 changes: 0 additions & 2 deletions app/Actions/Fortify/UpdateUserProfileInformation.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation
{
/**
* Validate and update the given user's profile information.
*
* @param array<string, string> $input
*/
public function update(User $user, array $input): void
{
Expand Down
1 change: 0 additions & 1 deletion app/Http/Controllers/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;

class HomeController extends Controller
{
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"require-dev": {
"barryvdh/laravel-debugbar": "^3.8",
"fakerphp/faker": "^1.9.1",
"laravel-lang/common": "^4.0",
"laravel/pint": "^1.0",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
Expand Down
Loading

0 comments on commit 658ed6d

Please sign in to comment.