Skip to content

Commit 9f3acec

Browse files
committed
Initial commit
0 parents  commit 9f3acec

26 files changed

+785
-0
lines changed

.codeclimate.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
exclude_patterns:
2+
- ".github/"
3+
- "stubs/"
4+
- "tests/"
5+
- "**/vendor/"
6+
- "**/node_modules/"

.github/ISSUE_TEMPLATE/bug_report.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**What version does this affect?**
14+
- Laravel Version: [e.g. 5.8.0]
15+
- Package Version: [e.g. 1.5.0]
16+
17+
**To Reproduce**
18+
Steps to reproduce the behavior:
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Additional context**
24+
Add any other context about the problem here.
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest a new feature idea or improvement
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/workflows/coverage.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Code Coverage
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
coverage:
10+
runs-on: ubuntu-latest
11+
12+
name: Publish code coverage
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
18+
- name: Setup PHP
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: 7.4
22+
extensions: dom, curl, libxml, mbstring, zip, pcntl, bcmath, intl, iconv
23+
coverage: pcov
24+
25+
- name: Cache dependencies
26+
uses: actions/cache@v2
27+
with:
28+
path: |
29+
vendor
30+
${{ steps.composer-cache-files-dir.outputs.dir }}
31+
key: ${{ runner.os }}-composer-${{ hashFiles('composer.json') }}
32+
restore-keys: |
33+
${{ runner.os }}-composer-
34+
35+
- name: Install dependencies
36+
env:
37+
COMPOSER_DISCARD_CHANGES: true
38+
run: composer require --no-suggest --no-progress --no-interaction --prefer-dist --update-with-all-dependencies "laravel/framework:^8.0" "orchestra/testbench:^6.0"
39+
40+
- name: Run and publish code coverage
41+
uses: paambaati/[email protected]
42+
env:
43+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
44+
with:
45+
coverageCommand: vendor/bin/phpunit --coverage-clover ${{ github.workspace }}/clover.xml
46+
debug: true
47+
coverageLocations:
48+
"${{github.workspace}}/clover.xml:clover"

.github/workflows/php-cs-fixer.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Code Style
2+
3+
on: [ pull_request, push ]
4+
5+
jobs:
6+
coverage:
7+
runs-on: ubuntu-latest
8+
9+
name: Run code style checks
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
15+
- name: Setup PHP
16+
uses: shivammathur/setup-php@v2
17+
with:
18+
php-version: 7.4
19+
extensions: dom, curl, libxml, mbstring, zip, pcntl, bcmath, intl, iconv
20+
21+
- name: Cache dependencies
22+
uses: actions/cache@v2
23+
with:
24+
path: |
25+
vendor
26+
${{ steps.composer-cache-files-dir.outputs.dir }}
27+
key: ${{ runner.os }}-composer-${{ hashFiles('composer.json') }}
28+
restore-keys: |
29+
${{ runner.os }}-composer-
30+
31+
- name: Install dependencies
32+
env:
33+
COMPOSER_DISCARD_CHANGES: true
34+
run: composer require --no-suggest --no-progress --no-interaction --prefer-dist --update-with-all-dependencies "laravel/framework:^8.0" "orchestra/testbench:^6.0"
35+
36+
- name: Run PHP CS Fixer
37+
run: ./vendor/bin/php-cs-fixer fix --diff --dry-run

.github/workflows/phpunit.yml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: PHPUnit
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '0 0 * * *'
8+
9+
jobs:
10+
php-tests:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
php: [ 8.0, 7.4 ]
16+
laravel: [ ^8.12 ]
17+
dependency-version: [ stable, lowest ]
18+
19+
name: "${{ matrix.php }} / ${{ matrix.laravel }} (${{ matrix.dependency-version }})"
20+
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v2
24+
25+
- name: Setup PHP
26+
uses: shivammathur/setup-php@v2
27+
with:
28+
php-version: ${{ matrix.php }}
29+
extensions: dom, curl, libxml, mbstring, zip, pcntl, bcmath, intl, iconv
30+
tools: composer:v2
31+
32+
- name: Register composer cache directory
33+
id: composer-cache-files-dir
34+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
35+
36+
- name: Cache dependencies
37+
uses: actions/cache@v2
38+
with:
39+
path: |
40+
vendor
41+
${{ steps.composer-cache-files-dir.outputs.dir }}
42+
key: ${{ runner.os }}-composer-${{ hashFiles('composer.json') }}
43+
restore-keys: |
44+
${{ runner.os }}-composer-
45+
46+
- name: Set minimum stability
47+
run: composer config minimum-stability ${{ matrix.minimum-stability }}
48+
49+
- name: Install dependencies
50+
env:
51+
COMPOSER_DISCARD_CHANGES: true
52+
run: composer require --no-suggest --no-progress --no-interaction --prefer-dist --update-with-all-dependencies "laravel/framework:${{ matrix.laravel }}"
53+
54+
- name: Set dependency version
55+
env:
56+
COMPOSER_DISCARD_CHANGES: true
57+
run: composer update --no-suggest --no-progress --no-interaction --no-suggest --prefer-dist --with-all-dependencies --prefer-${{ matrix.dependency-version }}
58+
59+
- name: Execute tests
60+
run: vendor/bin/phpunit

.gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
vendor/
2+
composer.phar
3+
composer.lock
4+
.phpunit.result.cache
5+
.php-cs-fixer.cache
6+
7+
.DS_Store
8+
.phpstorm.meta.php
9+
_ide_helper.php
10+
11+
node_modules
12+
mix-manifest.json
13+
yarn-error.log

.idea/.gitignore

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/blade.xml

+98
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/laravel-idea.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/laravel-package-template.iml

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/php.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)