Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
yeganemehr committed Jan 28, 2023
0 parents commit b6f9d1c
Show file tree
Hide file tree
Showing 34 changed files with 8,820 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI

on: [push, pull_request]

jobs:
build-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: php-actions/composer@v6
with:
php_version: "8.1"
- uses: php-actions/phpunit@v3
with:
php_extensions: xdebug
php_version: "8.1"
args: --coverage-clover=coverage/clover-coverage.xml
env:
XDEBUG_MODE: coverage

- name: Code Coverage Check
uses: themichaelhall/check-code-coverage@v2
with:
report: coverage/clover-coverage.xml
required-percentage: 80
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/coverage
/vendor
/.phpunit.cache
/junit.xml
/.php-cs-fixer.cache
/.phpunit.result.cache
/.phpunit.cache
/.idea
10 changes: 10 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

$finder = PhpCsFixer\Finder::create()
->in(["config", "database", "routes", "src", "tests"]);

$config = new PhpCsFixer\Config();
return $config->setRules([
'@Symfony' => true,
])
->setFinder($finder);
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Dade Negar Jey Ltd

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# TODO
32 changes: 32 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "dnj/laravel-error-tracker-server",
"license": "MIT",
"autoload": {
"psr-4": {
"dnj\\ErrorTracker\\Laravel\\Server\\": "src/"
}
},
"require": {
"php": "^8.1",
"dnj/laravel-user-logger": "@dev",
"dnj/error-tracker-contracts": "@dev"
},
"require-dev": {
"phpunit/phpunit": "^9",
"friendsofphp/php-cs-fixer": "^3.11",
"orchestra/testbench": "^7.0"
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"test:phpunit": "vendor/bin/phpunit",
"test:codestyle": "vendor/bin/php-cs-fixer fix -v --dry-run --stop-on-violation --using-cache=no"
},
"extra": {
"laravel": {
"providers": [
"dnj\\ErrorTracker\\Laravel\\Server\\ServiceProvider"
]
}
}
}
Loading

0 comments on commit b6f9d1c

Please sign in to comment.