Skip to content

Commit

Permalink
feat: search by indexed data
Browse files Browse the repository at this point in the history
  • Loading branch information
igzard committed Jan 14, 2025
1 parent 1153855 commit bf7e2cf
Show file tree
Hide file tree
Showing 19 changed files with 245,508 additions and 34 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/generate_data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Run Generator and Push to Master

on:
workflow_dispatch: # Manuális futtatás
push:
branches:
- master # Ha a master branchre push történik

jobs:
run-generator:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Run Generator Script
run: |
chmod +x /bin/generator
/bin/generator
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Commit and Push Changes
run: |
git add .
git commit -m "Update generated files"
git push origin master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ composer-install: ## install php packages
phpunit: ## Run phpunit
php ./vendor/bin/phpunit --colors=always

.PHONY: php-cs-fixer
php-cs-fixer: ## Run php-cs-fixer
.PHONY: cs-fix-check
cs-fix-check: ## Run php-cs-fixer-check
php ./vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --diff --dry-run --verbose

.PHONY: php-cs-fixer-check
php-cs-fixer-check: ## Run php-cs-fixer-check
php ./vendor/bin/php-cs-fixer fix --dry-run
.PHONY: cs-fix
cs-fix: ## Run cs-fix
php ./vendor/bin/php-cs-fixer fix

.PHONY: phpstan
phpstan: ## Run phpstan
php ./vendor/bin/phpstan

.PHONY: code-quality
code-quality: php-cs-fixer-check phpunit phpstan ## Run code quality checks
code-quality: cs-fix-check phpunit phpstan ## Run code quality checks
11 changes: 11 additions & 0 deletions bin/generator
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env php
<?php

declare(strict_types=1);

use Igzard\HuncityPhp\Generator\Generator;

require __DIR__.'/../vendor/autoload.php';

$generator = new Generator();
$generator->generateIndexes();
Loading

0 comments on commit bf7e2cf

Please sign in to comment.