Skip to content

Commit 2705dd7

Browse files
committed
feat: initial commit
0 parents  commit 2705dd7

File tree

88 files changed

+15884
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+15884
-0
lines changed

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2
16+
17+
[Makefile]
18+
indent_style = tab

.github/CODE_OF_CONDUCT.md

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our
6+
community a harassment-free experience for everyone, regardless of age, body
7+
size, visible or invisible disability, ethnicity, sex characteristics, gender
8+
identity and expression, level of experience, education, socio-economic status,
9+
nationality, personal appearance, race, religion, or sexual identity
10+
and orientation.
11+
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
14+
15+
## Our Standards
16+
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
19+
20+
* Demonstrating empathy and kindness toward other people
21+
* Being respectful of differing opinions, viewpoints, and experiences
22+
* Giving and gracefully accepting constructive feedback
23+
* Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
* Focusing on what is best not just for us as individuals, but for the
26+
overall community
27+
28+
Examples of unacceptable behavior include:
29+
30+
* The use of sexualized language or imagery, and sexual attention or
31+
advances of any kind
32+
* Trolling, insulting or derogatory comments, and personal or political attacks
33+
* Public or private harassment
34+
* Publishing others' private information, such as a physical or email
35+
address, without their explicit permission
36+
* Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
38+
39+
## Enforcement Responsibilities
40+
41+
Community leaders are responsible for clarifying and enforcing our standards of
42+
acceptable behavior and will take appropriate and fair corrective action in
43+
response to any behavior that they deem inappropriate, threatening, offensive,
44+
or harmful.
45+
46+
Community leaders have the right and responsibility to remove, edit, or reject
47+
comments, commits, code, wiki edits, issues, and other contributions that are
48+
not aligned to this Code of Conduct, and will communicate reasons for moderation
49+
decisions when appropriate.
50+
51+
## Scope
52+
53+
This Code of Conduct applies within all community spaces, and also applies when
54+
an individual is officially representing the community in public spaces.
55+
Examples of representing our community include using an official e-mail address,
56+
posting via an official social media account, or acting as an appointed
57+
representative at an online or offline event.
58+
59+
## Enforcement
60+
61+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62+
reported to the community leaders responsible for enforcement at
63+
64+
All complaints will be reviewed and investigated promptly and fairly.
65+
66+
All community leaders are obligated to respect the privacy and security of the
67+
reporter of any incident.
68+
69+
## Enforcement Guidelines
70+
71+
Community leaders will follow these Community Impact Guidelines in determining
72+
the consequences for any action they deem in violation of this Code of Conduct:
73+
74+
### 1. Correction
75+
76+
**Community Impact**: Use of inappropriate language or other behavior deemed
77+
unprofessional or unwelcome in the community.
78+
79+
**Consequence**: A private, written warning from community leaders, providing
80+
clarity around the nature of the violation and an explanation of why the
81+
behavior was inappropriate. A public apology may be requested.
82+
83+
### 2. Warning
84+
85+
**Community Impact**: A violation through a single incident or series
86+
of actions.
87+
88+
**Consequence**: A warning with consequences for continued behavior. No
89+
interaction with the people involved, including unsolicited interaction with
90+
those enforcing the Code of Conduct, for a specified period of time. This
91+
includes avoiding interactions in community spaces as well as external channels
92+
like social media. Violating these terms may lead to a temporary or
93+
permanent ban.
94+
95+
### 3. Temporary Ban
96+
97+
**Community Impact**: A serious violation of community standards, including
98+
sustained inappropriate behavior.
99+
100+
**Consequence**: A temporary ban from any sort of interaction or public
101+
communication with the community for a specified period of time. No public or
102+
private interaction with the people involved, including unsolicited interaction
103+
with those enforcing the Code of Conduct, is allowed during this period.
104+
Violating these terms may lead to a permanent ban.
105+
106+
### 4. Permanent Ban
107+
108+
**Community Impact**: Demonstrating a pattern of violation of community
109+
standards, including sustained inappropriate behavior, harassment of an
110+
individual, or aggression toward or disparagement of classes of individuals.
111+
112+
**Consequence**: A permanent ban from any sort of public interaction within
113+
the community.
114+
115+
## Attribution
116+
117+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118+
version 2.0, available at
119+
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120+
121+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
122+
enforcement ladder](https://github.com/mozilla/diversity).
123+
124+
[homepage]: https://www.contributor-covenant.org
125+
126+
For answers to common questions about this code of conduct, see the FAQ at
127+
https://www.contributor-covenant.org/faq. Translations are available at
128+
https://www.contributor-covenant.org/translations.

.github/FUNDING.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
3+
github: wayofdev
4+
5+
...

.github/labeler.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
# this file is for the labeler workflow job
3+
# Documentation https://github.com/marketplace/actions/labeler
4+
5+
'type: documentation':
6+
- assets/**/*
7+
- .github/*
8+
- ./*.md
9+
10+
'type: maintenance':
11+
- .github/**/*
12+
- tests/**/*
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
3+
# https://github.com/peter-evans/enable-pull-request-automerge
4+
5+
on: # yamllint disable-line rule:truthy
6+
pull_request:
7+
8+
permissions:
9+
pull-requests: write
10+
contents: write
11+
12+
name: 🤞 Auto merge release
13+
14+
jobs:
15+
auto-merge:
16+
if: github.actor == 'lotyp' && startsWith(github.head_ref, 'release-please--')
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: 🤞 Auto-merge pull request
20+
uses: peter-evans/enable-pull-request-automerge@v2
21+
with:
22+
pull-request-number: ${{ github.event.pull_request.number }}
23+
merge-method: merge
24+
# to trigger other workflows, pass PAT token instead of GITHUB_TOKEN
25+
token: ${{ secrets.GITHUB_TOKEN }}
26+
27+
...

.github/workflows/ci.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
---
2+
3+
on: # yamllint disable-line rule:truthy
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
name: 🔍 Continuous integration
12+
13+
jobs:
14+
integration:
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
fail-fast: true
18+
matrix:
19+
os: ["ubuntu-22.04"]
20+
php: ["8.1", "8.2"]
21+
steps:
22+
- name: 📦 Check out the codebase
23+
uses: actions/checkout@v3
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, fileinfo
30+
ini-values: error_reporting=E_ALL
31+
tools: composer:v2
32+
coverage: none
33+
34+
- name: ♻️ Load cached dependencies
35+
id: cached-composer-dependencies
36+
uses: actions/cache@v3
37+
with:
38+
path: vendor
39+
key: vendor-${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
40+
41+
- name: ⚙️ Install dependencies
42+
if: steps.cached-composer-dependencies.outputs.cache-hit != 'true'
43+
run: composer install
44+
45+
- name: 🚨 Run coding standards task
46+
run: make cs-diff
47+
env:
48+
PHP_CS_FIXER_IGNORE_ENV: true
49+
50+
- name: 🧪 Execute phpunit tests
51+
uses: php-actions/phpunit@v3
52+
env:
53+
XDEBUG_MODE: coverage
54+
with:
55+
bootstrap: vendor/autoload.php
56+
configuration: phpunit.xml.dist
57+
php_extensions: xdebug
58+
args: tests --coverage-clover ./coverage.xml
59+
60+
- name: 📝 Run static analysis using phpstan
61+
run: make stan
62+
63+
- name: 📤 Upload coverage report to Codecov
64+
uses: codecov/codecov-action@v3
65+
with:
66+
token: ${{ secrets.CODECOV_TOKEN }}
67+
files: ./coverage.xml
68+
verbose: true
69+
70+
...
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
# This workflow was added by CodeSee. Learn more at https://codesee.io/
3+
# This is v2.0 of this workflow file
4+
5+
on: # yamllint disable-line rule:truthy
6+
push:
7+
branches:
8+
- master
9+
- develop
10+
pull_request_target:
11+
types:
12+
- opened
13+
- synchronize
14+
- reopened
15+
16+
name: 🤖 CodeSee
17+
18+
permissions: read-all
19+
20+
jobs:
21+
codesee:
22+
runs-on: ubuntu-latest
23+
continue-on-error: true
24+
steps:
25+
- name: 💻 Analyze the repo with CodeSee
26+
uses: Codesee-io/codesee-action@v2
27+
with:
28+
codesee-token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }}

.github/workflows/create-release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
3+
# https://github.com/google-github-actions/release-please-action#release-types-supported
4+
5+
on: # yamllint disable-line rule:truthy
6+
push:
7+
branches:
8+
- master
9+
10+
name: 📦 Create release
11+
12+
jobs:
13+
create-release:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: 🎉 Create release
17+
uses: google-github-actions/release-please-action@v3
18+
id: release
19+
with:
20+
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
21+
release-type: node
22+
package-name: laravel-cycle-orm-adapter
23+
default-branch: master
24+
changelog-types: |
25+
[
26+
{ "type": "feat", "section": "Features", "hidden": false },
27+
{ "type": "fix", "section": "Bug Fixes", "hidden": false },
28+
{ "type": "perf", "section": "Performance Improvements", "hidden": false },
29+
{ "type": "docs", "section": "Documentation", "hidden": false },
30+
{ "type": "chore", "section": "Miscellaneous", "hidden": false },
31+
{ "type": "style", "section": "Styles", "hidden": true },
32+
{ "type": "revert", "section": "Reverts", "hidden": true },
33+
{ "type": "deps", "section": "Dependencies", "hidden": true },
34+
{ "type": "refactor", "section": "Code Refactoring", "hidden": true },
35+
{ "type": "test", "section": "Tests", "hidden": true },
36+
{ "type": "build", "section": "Build System", "hidden": true },
37+
{ "type": "ci", "section": "Continuous Integration", "hidden": true }
38+
]
39+
40+
...

.github/workflows/label.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
3+
# This workflow will triage pull requests and apply a label based on the
4+
# paths that are modified in the pull request.
5+
#
6+
# To use this workflow, you will need to set up a .github/labeler.yml
7+
# file with configuration. For more information, see:
8+
# https://github.com/actions/labeler/blob/master/README.md
9+
10+
on: # yamllint disable-line rule:truthy
11+
pull_request:
12+
13+
name: 🏷️ Apply labels
14+
15+
jobs:
16+
label:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: 🏷️ Apply labels
20+
uses: actions/labeler@v4
21+
with:
22+
repo-token: ${{ secrets.GITHUB_TOKEN }}
23+
24+
...

.github/workflows/shellcheck.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
3+
on: # yamllint disable-line rule:truthy
4+
pull_request:
5+
6+
name: 🐞 Differential shell-check
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
shellcheck:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: 📦 Check out the codebase
17+
uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
20+
21+
- name: 🐞 Differential shell-check
22+
uses: redhat-plumbers-in-action/differential-shellcheck@v4
23+
with:
24+
severity: warning
25+
token: ${{ secrets.GITHUB_TOKEN }}
26+
27+
...

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/vendor/
2+
/.build/

0 commit comments

Comments
 (0)