Skip to content

Commit cefc048

Browse files
committed
chore: Add Github configuration files.
1 parent ec309a9 commit cefc048

8 files changed

Lines changed: 238 additions & 0 deletions

File tree

.github/CODE_OF_CONDUCT.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at am@localheinz.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: http://contributor-covenant.org
46+
[version]: http://contributor-covenant.org/version/1/4/

.github/CONTRIBUTING.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# CONTRIBUTING
2+
3+
We're using [Travis CI](https://travis-ci.com) as a continuous integration system.
4+
5+
For details, see [`.travis.yml`](../.travis.yml).
6+
7+
## Tests
8+
9+
We're using [`grumphp/grumphp`](https://github.com/phpro/grumphp) to drive the development.
10+
11+
Run
12+
13+
```bash
14+
./vendor/bin/grumphp run
15+
```
16+
17+
to run all the tests.
18+
19+
## Coding Standards
20+
21+
We are using [`drupol/php-conventions`](https://github.com/drupol/php-conventions) to enforce coding standards.
22+
23+
Run
24+
25+
```bash
26+
./vendor/bin/grumphp run
27+
```
28+
29+
to automatically detect/fix coding standard violations.

.github/ISSUE_TEMPLATE.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## Steps required to reproduce the problem
2+
3+
1.
4+
2.
5+
3.
6+
7+
## Expected Result
8+
9+
*
10+
11+
## Actual Result
12+
13+
*

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
This PR
2+
3+
* [x]
4+
* [ ]
5+
* [ ]
6+
7+
Follows #.
8+
Related to #.
9+
Fixes #.

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: composer
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10
8+
- package-ecosystem: github-actions
9+
directory: "/"
10+
schedule:
11+
interval: daily
12+
open-pull-requests-limit: 10

.github/settings.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# https://github.com/probot/settings
2+
3+
labels:
4+
- name: bug
5+
color: ee0701
6+
7+
- name: dependencies
8+
color: 0366d6
9+
10+
- name: enhancement
11+
color: 0e8a16
12+
13+
- name: question
14+
color: cc317c
15+
16+
- name: security
17+
color: ee0701
18+
19+
- name: stale
20+
color: eeeeee
21+
22+
repository:
23+
allow_merge_commit: true
24+
allow_rebase_merge: false
25+
allow_squash_merge: true
26+
default_branch: master
27+
description: "Doctrine's OCI8 (Oracle) driver with cursor support."
28+
homepage: https://ecphp-doctrine-oci8.readthedocs.io
29+
topics: doctrine,oci8,oci,oracle,database,cursor
30+
has_downloads: true
31+
has_issues: true
32+
has_pages: false
33+
has_projects: false
34+
has_wiki: false
35+
name: doctrine-oci8
36+
private: false
37+
38+
teams:
39+
- name: core
40+
permission: push

.github/stale.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
daysUntilStale: 60
2+
3+
daysUntilClose: 7
4+
5+
staleLabel: stale
6+
7+
markComment: >
8+
This issue has been automatically marked as stale because it has not had
9+
recent activity. It will be closed if no further activity occurs. Thank you
10+
for your contributions.
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2+
3+
on:
4+
- pull_request
5+
- push
6+
7+
name: "Continuous Integration"
8+
9+
jobs:
10+
run:
11+
name: "Grumphp"
12+
runs-on: ${{ matrix.operating-system }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
17+
php-versions: ['7.4']
18+
19+
steps:
20+
- name: Set git to use LF
21+
run: |
22+
git config --global core.autocrlf false
23+
git config --global core.eol lf
24+
25+
- name: Checkout
26+
uses: actions/checkout@master
27+
with:
28+
fetch-depth: 1
29+
30+
- name: Install PHP
31+
uses: shivammathur/setup-php@master
32+
with:
33+
php-version: ${{ matrix.php-versions }}
34+
extensions: xdebug,mbstring
35+
36+
- name: Get Composer Cache Directory
37+
id: composer-cache
38+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
39+
40+
- name: Cache dependencies
41+
uses: actions/cache@v2.1.4
42+
with:
43+
path: ${{ steps.composer-cache.outputs.dir }}
44+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
45+
restore-keys: ${{ runner.os }}-composer-
46+
47+
- name: Install dependencies
48+
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader
49+
50+
- name: Build the docker-compose stack
51+
run: docker-compose -f docker-compose.yml up -d
52+
53+
- name: Run test suite
54+
run: docker exec php ./vendor/bin/phpunit
55+
56+
- name: Run Grumphp
57+
run: vendor/bin/grumphp run
58+
59+
- name: Send PSALM data
60+
run: vendor/bin/psalm --shepherd --stats src/
61+
continue-on-error: true
62+
63+
- name: Send Scrutinizer data
64+
run: |
65+
wget https://scrutinizer-ci.com/ocular.phar
66+
php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
67+
continue-on-error: true
68+
69+
- name: Infection score report
70+
run: |
71+
vendor/bin/infection run -j 2
72+
continue-on-error: true
73+
74+
- name: PHP Insights report
75+
run: |
76+
rm -rf composer.lock vendor
77+
composer require nunomaduro/phpinsights --dev
78+
vendor/bin/phpinsights analyse src/ -n
79+
continue-on-error: true

0 commit comments

Comments
 (0)