Skip to content

Commit

Permalink
feat: ♻️ update ESLint command in CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cbouvat committed Oct 19, 2023
1 parent ea6f838 commit 6c8ab61
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
- name: Install Node dependencies
run: npm ci
- name: ESLint
run: npm run lint
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: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"scripts": {
"dev": "vite --host",
"build": "vite build",
"lint": "eslint --ext .js ./resources/js --fix"
"eslint": "eslint --ext .js ./resources/js --fix"
},
"devDependencies": {
"@alpinejs/focus": "^3.10.5",
Expand Down

0 comments on commit 6c8ab61

Please sign in to comment.