Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
8dba1c4
patch laravel-clickhouse
rez1dent3 Jun 4, 2020
e4e7400
fix travis config
rez1dent3 Jun 11, 2020
407e60d
add support php 7.2
rez1dent3 Jun 11, 2020
4859966
add infection
rez1dent3 Jun 11, 2020
6bc6eda
fix php
rez1dent3 Jun 11, 2020
79ec6b8
fix msi
rez1dent3 Jun 11, 2020
1921a72
fix mockery
rez1dent3 Jun 11, 2020
f1ab48b
Merge pull request #1 from bavix/develop
rez1dent3 Jun 12, 2020
22510d0
Update composer.json
rez1dent3 Jun 28, 2020
2649d63
Update ClickHouseServiceProvider.php
rez1dent3 Jun 28, 2020
c4e7537
Update README.md
rez1dent3 Jun 28, 2020
2f1578b
Update ClickHouseServiceProvider.php
rez1dent3 Jun 28, 2020
43bd2e8
Update ClickHouseServiceProvider.php
rez1dent3 Jun 28, 2020
df0e98d
first version
rez1dent3 Jul 9, 2020
8ef1211
Merge pull request #2 from bavix/develop
rez1dent3 Jul 9, 2020
eb31b09
update docs
rez1dent3 Jul 9, 2020
e30226d
Merge branch 'master' of github.com:bavix/laravel-clickhouse
rez1dent3 Jul 9, 2020
f379ce0
fix telescope
rez1dent3 Jul 9, 2020
70e208b
Update composer.json
rez1dent3 Aug 31, 2020
073e5f4
Update composer.json
rez1dent3 Sep 24, 2020
271ba09
update library... more strong typing and tests
rez1dent3 Sep 24, 2020
e4765ef
Update README.md
rez1dent3 Sep 24, 2020
ab45775
Update README.md
rez1dent3 Sep 24, 2020
596378a
Apply fixes from StyleCI
rez1dent3 Sep 24, 2020
054761a
Merge pull request #3 from bavix/analysis-9mgYpN
rez1dent3 Sep 24, 2020
fc48a3f
Update README.md
rez1dent3 Sep 24, 2020
2fd7b4b
add support php 8 & update readme
rez1dent3 Mar 15, 2021
15d6028
Merge remote-tracking branch 'origin/master'
rez1dent3 Mar 15, 2021
e08b8d0
Update README.md
rez1dent3 Mar 15, 2021
075434b
add support php8
rez1dent3 Mar 15, 2021
e2aa387
Merge remote-tracking branch 'origin/master'
rez1dent3 Mar 15, 2021
e673918
Update composer.json
rez1dent3 Oct 16, 2022
3761cce
Update README.md
rez1dent3 Oct 16, 2022
c86a3a8
Update composer.json
rez1dent3 Oct 27, 2022
2154f6d
Update README.md
rez1dent3 Oct 27, 2022
69eb013
Update composer.json
rez1dent3 Jan 23, 2023
23836c3
Fix Eloquent\Builder::where to pass along AND/OR
glmdev Jan 31, 2023
aded561
Suppress deprecation warning
evgeek Feb 16, 2023
e7d71cc
Merge pull request #1 from evgeek/fix-deprecation-warning
evgeek Feb 16, 2023
89d4c62
Merge pull request #5 from evgeek/master
rez1dent3 Feb 21, 2023
a1847f8
Merge pull request #4 from glmdev/master
rez1dent3 Feb 21, 2023
6ee5fd8
Create dependabot.yml
rez1dent3 Jan 17, 2024
200c0a4
Create changelog.yml
rez1dent3 Jan 17, 2024
a2ed9d2
Update changelog.md
bavixbot Jan 17, 2024
41cc8c0
Update README.md
rez1dent3 Jan 29, 2024
4cd17c5
Add support laravel ^11.0
rez1dent3 Mar 14, 2024
38985c0
Add .whitesource configuration file
mend-bolt-for-github[bot] Mar 14, 2024
4117855
Merge pull request #8 from bavix/whitesource/configure
rez1dent3 Mar 14, 2024
56432d0
fix
rez1dent3 Mar 14, 2024
8fbc032
fix
rez1dent3 Mar 14, 2024
4d6ff74
fix
rez1dent3 Mar 14, 2024
ce0b67e
fix
rez1dent3 Mar 14, 2024
649ea18
fix
rez1dent3 Mar 14, 2024
a17ee54
fix
rez1dent3 Mar 14, 2024
fe5d334
fix
rez1dent3 Mar 14, 2024
363d681
test
rez1dent3 Mar 14, 2024
b122fe0
test
rez1dent3 Mar 14, 2024
524a3ed
autofix
bavixbot Mar 14, 2024
282e61d
generate baseline
rez1dent3 Mar 14, 2024
3f3f214
check laravel ^10.0 and ^11.0
rez1dent3 Mar 14, 2024
2a4af81
Merge pull request #9 from bavix/support-laravel-11
rez1dent3 Mar 14, 2024
aa007e0
Update changelog.md
bavixbot Mar 14, 2024
4c07da7
Update README.md
rez1dent3 Mar 14, 2024
36bbec5
Update changelog.md
bavixbot Mar 14, 2024
d7785de
Update stale.yml
rez1dent3 Mar 18, 2024
5380a7e
fix Method Bavix\LaravelClickHouse\Database\Query\Builder::getCountFo…
rez1dent3 Apr 1, 2024
2f59ed3
autofix
bavixbot Apr 1, 2024
b8c0cf9
update phpstan.baseline.neon
rez1dent3 Apr 1, 2024
3355471
Merge pull request #10 from bavix/7-method-bavixlaravelclickhousedata…
rez1dent3 Apr 1, 2024
20c4ea8
Update changelog.md
bavixbot Apr 1, 2024
e802f6c
init fixes
rez1dent3 Apr 1, 2024
d978fbc
baseline
rez1dent3 Apr 1, 2024
b0f99e8
autofix
bavixbot Apr 1, 2024
05b8573
Merge pull request #11 from bavix/fixes
rez1dent3 Apr 1, 2024
d10a56c
Update changelog.md
bavixbot Apr 1, 2024
a1ff036
Update README.md
rez1dent3 Apr 1, 2024
bba6ced
Update README.md
rez1dent3 Dec 18, 2024
d82282a
bump laravel to latest version
kirillbor1 Mar 3, 2025
f008da7
test
rez1dent3 Mar 13, 2025
5e02d82
autofix
bavixbot Mar 13, 2025
4e0e14d
Merge pull request #14 from bavix/bump-laravel-to-12
rez1dent3 Mar 13, 2025
f8e2bea
patch
rez1dent3 May 27, 2025
59e333f
Merge pull request #15 from bavix/patch
rez1dent3 May 27, 2025
25b42b3
Update changelog.md
bavixbot May 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: composer
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
14 changes: 14 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: update changelog

on:
release:
types: [released]

permissions: {}

jobs:
changelog:
permissions:
contents: write
secrets: inherit
uses: bavix/.github/.github/workflows/[email protected]
103 changes: 103 additions & 0 deletions .github/workflows/fixer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
name: fixer

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
autofix:
runs-on: ubuntu-latest

services:
clickhouse:
image: clickhouse/clickhouse-server
env:
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
ports:
- 8123:8123

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
extensions: mbstring, pgsql, mysql, sqlite, redis, memcached, bcmath
coverage: pcov
env:
runner: self-hosted

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-

- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Run rector-fix
run: composer rector-fix

- name: Run ecs-fix
run: composer ecs-fix

- name: Run rector-fix
run: composer rector-fix

- name: Run ecs-fix
run: composer ecs-fix

- name: Run rector
run: composer rector

- name: Run ecs
run: composer ecs

- name: Run parabench
run: composer parabench

- name: "Check if build has changed"
if: success()
id: has-changes
run: |
echo "stdout<<EOF" >> $GITHUB_OUTPUT
echo "$(git diff --stat)" >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT

- name: Import GPG key
if: ${{ steps.has-changes.outputs.stdout }}
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_BOT }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
fingerprint: ${{ secrets.GPG_FINGERPRINT }}
git_config_global: true
git_user_signingkey: true
git_commit_gpgsign: true
git_committer_name: Github bot
git_committer_email: [email protected]

- name: "Commit files"
if: ${{ steps.has-changes.outputs.stdout }}
env:
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
run: |
gh pr checkout ${{ github.event.pull_request.number }}
git commit -S -m "autofix" -a

- name: "Push changes"
if: ${{ steps.has-changes.outputs.stdout }}
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
run: git push -u origin HEAD
38 changes: 38 additions & 0 deletions .github/workflows/phpstan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: phpstan

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
phpstan:
runs-on: ubuntu-latest

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-

- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Run phpstan
run: composer phpstan
85 changes: 85 additions & 0 deletions .github/workflows/phpunits.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: phpunits

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
units:
runs-on: ubuntu-latest

strategy:
matrix:
php-versions: [8.2, 8.3, 8.4]
laravel-versions: [^10.0, ^11.0, ^12.0]

services:
clickhouse:
image: clickhouse/clickhouse-server
env:
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
ports:
- 8123:8123

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

- name: Setup PHP
id: php-install
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, pgsql, mysql, sqlite, redis, memcached
coverage: pcov

- name: Validate composer.json and composer.lock
id: composer-validate
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-

- name: Install dependencies
id: composer-dependencies
run: composer req --dev laravel/framework:${{ matrix.laravel-versions }} -W || composer install

- name: Check codeclimate
id: codeclimate-check
run: echo "execute=${{ matrix.php-versions == '8.2' && matrix.caches == 'array' && matrix.databases == 'testing' }}" >> $GITHUB_OUTPUT

- name: Prepare codeclimate
id: codeclimate-prepare
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
if: ${{ steps.codeclimate-check.outputs.execute == 'true' }}

- name: Prepare run test suite
id: unit-prepare
run: |
mkdir build

- name: Run test suite
id: unit-run
run: composer parabench

- name: Send coverage
id: codeclimate-send
run: |
./cc-test-reporter after-build --coverage-input-type clover --exit-code 0
bash <(curl -s https://codecov.io/bash)
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
if: ${{ steps.codeclimate-check.outputs.execute == 'true' }}
16 changes: 16 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Mark stale issues
on:
schedule:
- cron: "0 */8 * * *"
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because it has been open 7 days with no activity.'
days-before-stale: 7
days-before-close: 3
exempt-issue-labels: 'bug,in-developing'
exempt-pr-labels: 'bug,frozen,in-developing'
10 changes: 7 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/vendor
/.idea
composer.phar
/vendor/
composer.lock
tests/coverage
.idea/
build/
.phpunit.result.cache
.php_cs_cache
.phpunit.cache/
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

14 changes: 14 additions & 0 deletions .whitesource
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"scanSettings": {
"baseBranches": []
},
"checkRunSettings": {
"vulnerableCheckRunConclusionLevel": "failure",
"displayMode": "diff",
"useMendCheckNames": true
},
"issueSettings": {
"minSeverityLevel": "LOW",
"issueType": "DEPENDENCY"
}
}
Loading