Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/1_Bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: "\U0001F41B Bug Report"
about: Report errors and problems
title: "[bug] "
labels: Potential Bug
assignees: ''

---

**Description**
<!-- A clear and concise description of the problem. -->

**How to reproduce**
<!-- Code and/or config needed to reproduce the problem. -->

**Possible Solution**
<!--- Optional: only if you have suggestions on a fix/reason for the bug -->

**Additional context**
<!-- Optional: any other context about the problem: log messages, screenshots, etc. -->
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/2_Feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: "\U0001F680 Feature Request"
about: "I have a suggestion (and may want to implement it \U0001F642)!"
title: "[Feature] "
labels: Feature
assignees: ''

---

**Description**
<!-- A clear and concise description of the new feature. -->

**Example**
<!-- A simple example of the new feature in action (include PHP code, YAML config, etc.)
If the new feature changes an existing feature, include a simple before/after comparison. -->
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE/3_Support_question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: 👩‍🏫 Support Question
about: Questions about using this library
labels: Question / Support

---

**Description**
<!-- A clear and concise description of the problem. Also include what you tried, and any code
snippets if you have them.

Please be patient, it may take some to get a response. Thanks.
-->
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/4_Security_issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: ⛔ Security Issue
about: Report security issues and problems (PLEASE DON'T DISCLOSE SECURITY-RELATED ISSUES PUBLICLY)

---

⚠ PLEASE DON'T DISCLOSE SECURITY-RELATED ISSUES PUBLICLY, SEE BELOW.

If you have found a security issue in this project, please send the details to
security [at] rollerscapes.net and don't disclose it publicly until we can provide a
fix for it.

**Note:** Please don't blindly send reports about automated tools, make sure the
reported issue is in fact exploitable. Thanks.
3 changes: 2 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
| BC breaks? | yes/no
| Deprecations? | yes/no
| Fixed tickets | #... <!-- #-prefixed issue number(s), if any -->
| License | MIT
| License | MPL-2.0

<!--
- Please fill in this template according to the PR you're about to submit.
Provide additional information in your description, not the questioner table.
- Replace this comment by a description of what your PR is solving.
- Do not replace the License, we only accept MPL-2.0 for this library.
-->
13 changes: 13 additions & 0 deletions .github/composer-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"config": {
"cache-vcs-dir": "/dev/null",
"platform-check": false,
"preferred-install": {
"*": "dist"
},
"allow-plugins": {
"ergebnis/composer-normalize": true,
"symfony/flex": true
}
}
}
158 changes: 0 additions & 158 deletions .github/workflows/ci.yaml

This file was deleted.

51 changes: 51 additions & 0 deletions .github/workflows/composer-validate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Composer Validate

on:
push:
paths:
- 'composer.json'
pull_request:
paths:
- 'composer.json'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

jobs:
composer-sync:
name: 'Composer validation'
runs-on: ubuntu-24.04
env:
php-version: '8.4'

steps:
-
name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ env.php-version }}
ini-values: "memory_limit=-1"
coverage: none

-
name: Checkout target branch
uses: actions/checkout@v6

-
name: 'Install dependencies'
run: |
COMPOSER_HOME="$(composer config home)"
([ -d "$COMPOSER_HOME" ] || mkdir "$COMPOSER_HOME") && cp .github/composer-config.json "$COMPOSER_HOME/config.json"
composer global require -q "ergebnis/composer-normalize"
composer install --no-progress

-
name: 'Normalized composer.json'
run: |
echo "composer.json"
composer validate
composer normalize
16 changes: 16 additions & 0 deletions .github/workflows/inspector-bot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CS

on:
pull_request:

permissions:
contents: read

jobs:
call-inspector-bot:
name: InspectorBot
uses: rollerscapes/inspector-bot/.github/workflows/inspector-bot.yml@main
with:
package: RollerworksSplitToken
check_license: false # We use MPL-2.0 and this not supported by the bot yet

62 changes: 62 additions & 0 deletions .github/workflows/phpstan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: PHPStan

on:
pull_request:

defaults:
run:
shell: bash

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

jobs:
phpstan:
name: PHPStan
runs-on: ubuntu-24.04

env:
php-version: '8.2'
steps:
-
name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ env.php-version }}
ini-values: "memory_limit=-1"
coverage: none

-
name: Checkout target branch
uses: actions/checkout@v6
with:
ref: ${{ github.base_ref }}

-
name: Checkout PR
uses: actions/checkout@v6

-
name: Install dependencies
run: |
COMPOSER_HOME="$(composer config home)"
([ -d "$COMPOSER_HOME" ] || mkdir "$COMPOSER_HOME") && cp .github/composer-config.json "$COMPOSER_HOME/config.json"
composer install --no-progress --ansi --no-plugins

-
name: Generate PHPStan baseline
run: |
git checkout composer.json
git checkout -m ${{ github.base_ref }}
vendor/bin/phpstan analyze --generate-baseline --allow-empty-baseline --no-progress
git checkout -m FETCH_HEAD

-
name: PHPStan
run: |
vendor/bin/phpstan analyze --no-progress --error-format=github

Loading
Loading