Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
762530d
feat: add tests with coverage
AZabolotnikov Jun 25, 2025
ccbc088
feat: add tests with coverage
AZabolotnikov Jun 25, 2025
7860a92
feat: add tests with coverage
AZabolotnikov Jun 25, 2025
3fa97e7
feat: add tests with coverage
AZabolotnikov Jun 25, 2025
89140a1
feat: add tests with coverage
AZabolotnikov Jun 25, 2025
d22ba7d
feat: add tests with coverage
AZabolotnikov Jun 25, 2025
42102f8
feat: add tests with coverage
AZabolotnikov Jun 25, 2025
d865feb
feat: add tests with coverage
AZabolotnikov Jun 25, 2025
685c9c2
feat: add tests with coverage
AZabolotnikov Jun 25, 2025
1d347e7
feat: add tests with coverage
AZabolotnikov Jun 25, 2025
4a90363
feat: add tests with coverage
AZabolotnikov Jun 25, 2025
8e7bf9f
feat: add tests with coverage
AZabolotnikov Jun 25, 2025
be46a8e
feat: add tests with coverage
AZabolotnikov Jun 25, 2025
ae39abd
feat: add tests with coverage
AZabolotnikov Jun 25, 2025
9c388d7
feat: add tests with coverage
AZabolotnikov Jun 25, 2025
f3b2b92
feat: add tests with coverage
AZabolotnikov Jun 26, 2025
24a2c9a
feat: add tests with coverage
AZabolotnikov Jun 26, 2025
98cbb22
feat: add tests with coverage
AZabolotnikov Jun 30, 2025
c4960cf
feat: add tests with coverage
AZabolotnikov Jun 30, 2025
c149d4f
feat: add tests with coverage
AZabolotnikov Jun 30, 2025
0c6a0e1
feat: add tests with coverage
AZabolotnikov Jun 30, 2025
005d2ca
feat: add tests with coverage
AZabolotnikov Jun 30, 2025
e3ed979
feat: add tests with coverage
AZabolotnikov Jun 30, 2025
492e7ca
feat: add tests with coverage
AZabolotnikov Jun 30, 2025
761834d
feat: add tests with coverage
AZabolotnikov Jul 1, 2025
dcb2f40
feat: add tests with coverage
AZabolotnikov Jul 1, 2025
4896dae
feat: add tests with coverage
AZabolotnikov Jul 1, 2025
8224837
feat: add tests with coverage
AZabolotnikov Jul 1, 2025
3e17bf8
feat: add tests with coverage
AZabolotnikov Jul 3, 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
37 changes: 37 additions & 0 deletions .github/workflows/run-tests-with-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Run tests with coverage

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
tests-with-coverage:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ "8.3", "8.4" ]
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: xdebug, pcov
tools: composer:v2

- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Execute unit tests via PHPUnit with coverage
run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml

- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=build/logs/clover.xml -v
34 changes: 34 additions & 0 deletions bootstrap/autoload.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

define('LARAVEL_START', microtime(true));

/*
|--------------------------------------------------------------------------
| Register The Composer Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
| for our application. We just need to utilize it! We'll require it
| into the script here so that we do not have to worry about the
| loading of any our classes "manually". Feels great to relax.
|
*/

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

/*
|--------------------------------------------------------------------------
| Include The Compiled Class File
|--------------------------------------------------------------------------
|
| To dramatically increase your application's performance, you may use a
| compiled class file which contains all of the classes commonly used
| by a request. The Artisan "optimize" is used to create this file.
|
*/

$compiledPath = __DIR__ . '/cache/compiled.php';

if (file_exists($compiledPath)) {
require $compiledPath;
}
48 changes: 28 additions & 20 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
{
"name": "ronasit/laravel-clerk",
"description": "Package provides auth guard to auth user via the Clerk",
"type": "library",
"license": "MIT",
"autoload": {
"psr-4": {
"RonasIT\\Clerk\\": "src/"
}
},
"require": {
"php": "^8.3",
"laravel/framework": ">=11.34",
"lcobucci/jwt": "^5.3"
},
"extra": {
"laravel": {
"providers": [
"RonasIT\\Clerk\\Providers\\ClerkServiceProvider"
]
}
"name": "ronasit/laravel-clerk",
"description": "Package provides auth guard to auth user via the Clerk",
"type": "library",
"license": "MIT",
"autoload": {
"psr-4": {
"RonasIT\\Clerk\\": "src/",
"RonasIT\\Clerk\\Tests\\": "tests/",
"RonasIT\\Clerk\\Tests\\Support\\": "tests/Support/"
}
},
"require": {
"php": "^8.3",
"laravel/framework": ">=11.34",
"lcobucci/jwt": "^5.3"
},
"extra": {
"laravel": {
"providers": [
"RonasIT\\Clerk\\Providers\\ClerkServiceProvider"
]
}
},
"require-dev": {
"phpunit/phpunit": "^12.2",
"php-coveralls/php-coveralls": "^0.1.0",
"orchestra/testbench": "^10.4",
"ext-openssl": "*"
}
}
Loading