Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #331 from mimmi20/updates
Browse files Browse the repository at this point in the history
update config for dependabot
  • Loading branch information
mimmi20 authored Aug 28, 2023
2 parents 05ae6f5 + 44402ff commit a4f43e9
Show file tree
Hide file tree
Showing 17 changed files with 94 additions and 17 deletions.
13 changes: 11 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
; This file is for unifying the coding style for different editors and IDEs.
; More information at http://editorconfig.org

; file-version: 1.0

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
indent_size = 4
trim_trailing_whitespace = true

[{*.php,*.xml}]
[*.{js,ts,json,json5,yml}]
indent_size = 2

[composer.json]
indent_size = 4

[*.md]
indent_size = 2
trim_trailing_whitespace = false
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# file-version: 1.0

# text files
* text=auto
*.markdown text eol=lf
*.md text eol=lf
*.js text eol=lf
*.ts text eol=lf
*.css text eol=lf
*.scss text eol=lf
*.json text eol=lf
*.json5 text eol=lf
*.lock text eol=lf
*.html text eol=lf
*.php text eol=lf
Expand Down Expand Up @@ -41,5 +46,7 @@ phpstan.neon export-ignore text eol=lf
phpunit.xml export-ignore text eol=lf
psalm.xml export-ignore text eol=lf
rector.php export-ignore text eol=lf
/test export-ignore
/tests export-ignore
/tools export-ignore
/.github export-ignore
3 changes: 0 additions & 3 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@ For details, take a look at the following workflow configuration files:

- [`workflows/continuous-integration.yaml`](workflows/continuous-integration.yaml)
- [`workflows/lock-closed-issues.yaml`](workflows/lock-closed-issues.yaml)
- [`workflows/stale.yaml`](workflows/stale.yaml)

## Coding Standards

We are using [`ergebnis/composer-normalize`](https://github.com/ergebnis/composer-normalize) to normalize `composer.json`.

We are using [`friendsofphp/php-cs-fixer`](https://github.com/FriendsOfPHP/PHP-CS-Fixer) and [`squizlabs/php_codesniffer`](https://github.com/squizlabs/PHP_CodeSniffer) to enforce coding standards in PHP files.

Run
Expand Down
22 changes: 18 additions & 4 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
| Q | A
| ---------------------------| ---------------
| ua-generic-request version | x.y.z
| PHP version | x.y.z
| Q | A |
|-----------------|------------|
| project version | x.y.z |
| PHP version | x.y.z |


<!--
Expand All @@ -10,3 +10,17 @@
- Please post code as text (using proper markup). Do not post screenshots of code.
- Replace this comment by the description of your issue.
-->

#### Steps required to reproduce the problem

1.
2.
3.

#### Expected Result

*

#### Actual Result

*
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates

# file-version: 1.0

version: 2

updates:
Expand All @@ -21,6 +23,9 @@ updates:
# dependency name)
patterns:
- "*"
# update-types:
# - "minor"
# - "patch"
# exclude-patterns:
# - "gc_ruboconfig"

Expand Down Expand Up @@ -76,6 +81,9 @@ updates:
# dependency name)
patterns:
- "*"
# update-types:
# - "minor"
# - "patch"
# exclude-patterns:
# - "gc_ruboconfig"

Expand Down
4 changes: 3 additions & 1 deletion .github/labels.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
# file-version: 1.0

# Default GitHub labels
- color: "ee0701"
name: "bug"
Expand Down Expand Up @@ -63,7 +65,7 @@
name: "patch"
description: "Patch"

# other Labels to mimmi20/ua-generic-request
# other Labels
#- color: 5319e7
# name: "new useragents"
# description: ""
5 changes: 4 additions & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
# file-version: 1.0

template: |
## What’s Changed
Expand Down Expand Up @@ -74,7 +77,7 @@ categories:
- title: "**📦 Documentation:**"
labels:
- "documentation"
# other Labels to mimmi20/ua-generic-request
# other Labels
#- title: "**📦 new Useragents:**"
# labels:
# - "new useragents"
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/cleanup-caches.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions

# file-version: 1.0

name: "Cleanup caches by a branch"

on:
pull_request:
types:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#

# https://help.github.com/en/categories/automating-your-workflow-with-github-actions

# file-version: 1.0

name: "CodeQL"

on:
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions

# file-version: 1.0

name: "Continuous Integration"

on:
Expand Down Expand Up @@ -34,7 +36,9 @@ jobs:
name: "Check composer dependencies"

runs-on: "${{ matrix.operating-system }}"

timeout-minutes: 10

continue-on-error: false

needs: "ci"
Expand Down Expand Up @@ -88,7 +92,9 @@ jobs:
needs: "ci"

runs-on: "${{ matrix.operating-system }}"

timeout-minutes: 10

continue-on-error: false

strategy:
Expand Down Expand Up @@ -135,15 +141,17 @@ jobs:
composer-options: "--optimize-autoloader --prefer-dist --prefer-stable -v"

- name: "Run unit tests with phpunit/phpunit"
run: "vendor/bin/phpunit -c phpunit.xml --no-coverage"
run: "vendor/bin/phpunit -c phpunit.xml --no-coverage --display-warnings --display-deprecations"

code-coverage:
name: "Code Coverage with PHPUnit"

needs: "tests"

runs-on: "${{ matrix.operating-system }}"

timeout-minutes: 10

continue-on-error: false

strategy:
Expand Down Expand Up @@ -192,7 +200,7 @@ jobs:
run: "mkdir -p .build/coverage"

- name: "Collect code coverage with Xdebug and phpunit/phpunit"
run: "vendor/bin/phpunit -c phpunit.xml --coverage-clover=.build/coverage/clover.xml --coverage-text --coverage-xml=.build/coverage/coverage-xml --log-junit=.build/coverage/phpunit.junit.xml"
run: "vendor/bin/phpunit -c phpunit.xml --coverage-clover=.build/coverage/clover.xml --coverage-text --coverage-xml=.build/coverage/coverage-xml --log-junit=.build/coverage/phpunit.junit.xml --display-warnings --display-deprecations"

- name: "Upload coverage to Codecov"
uses: "codecov/codecov-action@v3.1.4"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
# Source repository: https://github.com/actions/dependency-review-action
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement

# https://help.github.com/en/categories/automating-your-workflow-with-github-actions

# file-version: 1.0

name: "Dependency Review"

on:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions

# file-version: 1.0

name: "Sync labels in the declarative way"

on:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/lock-closed-issues.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: Lock closed issue
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions

# file-version: 1.0

name: "Lock closed issue"

on:
issues:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/reactions.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions

name: 'Reaction Comments'
# file-version: 1.0

name: "Reaction Comments"

on:
issue_comment:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions

# file-version: 1.0

name: "Release Drafter"

on:
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,9 @@ tests/temp/*.ini
infection-*.log
rewrite*.php
.reports/
node_modules/
.build/
package-lock.json
.reports
*.bak
*.txt
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
## Code Status

[![codecov](https://codecov.io/gh/mimmi20/ua-generic-request/branch/master/graph/badge.svg)](https://codecov.io/gh/mimmi20/ua-generic-request)
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/mimmi20/ua-generic-request.svg)](http://isitmaintained.com/project/mimmi20/ua-generic-request "Average time to resolve an issue")
[![Percentage of issues still open](http://isitmaintained.com/badge/open/mimmi20/ua-generic-request.svg)](http://isitmaintained.com/project/mimmi20/ua-generic-request "Percentage of issues still open")
[![Average time to resolve an issue](https://isitmaintained.com/badge/resolution/mimmi20/ua-generic-request.svg)](https://isitmaintained.com/project/mimmi20/ua-generic-request "Average time to resolve an issue")
[![Percentage of issues still open](https://isitmaintained.com/badge/open/mimmi20/ua-generic-request.svg)](https://isitmaintained.com/project/mimmi20/ua-generic-request "Percentage of issues still open")


## Requirements
Expand Down

0 comments on commit a4f43e9

Please sign in to comment.