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
42 changes: 0 additions & 42 deletions .codeclimate.yml

This file was deleted.

13 changes: 11 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,20 @@ root = true
# Unix-style newlines with a newline ending every file
[*]
indent_style = space
indent_size = 2
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8

[*.md]
indent_size = 4
indent_size = 1

[*.php]
indent_size = 1

[*.toml]
indent_size = 2

[*.{yml,yaml,json,neon}]
indent_size = 2
25 changes: 13 additions & 12 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
version: 2
updates:
- package-ecosystem: composer
directory: "/"
schedule:
interval: daily
time: "04:00"
open-pull-requests-limit: 10
reviewers:
- otherguy
assignees:
- otherguy
labels:
- "dependabot \U0001F916"
- package-ecosystem: composer
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 10
labels: [dependencies]
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 5
labels: [dependencies, github-actions]
24 changes: 0 additions & 24 deletions .github/reaction.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/stale.yml

This file was deleted.

85 changes: 85 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
---
name: CI
'on':
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
with:
persist-credentials: false
- name: Markdown Lint
uses: DavidAnson/markdownlint-cli2-action@v23
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unpinned action reference [zizmor:zizmor/unpinned-uses]

with:
globs: |
**/*.md
config: ".markdownlint.yaml"

- name: YAML Lint
uses: karancode/yamllint-github-action@master
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unpinned action reference [zizmor:zizmor/unpinned-uses]

with:
yamllint_config_filepath: .yamllint.yml
yamllint_comment: true
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
test:
name: PHP ${{ matrix.php }} on ${{ matrix.os }}
needs: lint
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: ['8.3', '8.4']
steps:
- name: Checkout
Comment thread
qltysh[bot] marked this conversation as resolved.
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
with:
persist-credentials: false
- name: Setup PHP
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f
with:
php-version: ${{ matrix.php }}
extensions: json, mbstring
coverage: ${{ matrix.php == '8.3' && 'pcov' || 'none' }}
tools: composer:v2
- name: Cache Composer dependencies
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
with:
path: ~/.composer/cache
key: composer-${{ matrix.php }}-${{ hashFiles('composer.json') }}
restore-keys: composer-${{ matrix.php }}-
- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-progress
- name: Lint (Pint)
run: vendor/bin/pint --test
- name: Static analysis (PHPStan)
run: vendor/bin/phpstan analyse --no-progress
- name: Rector dry-run
run: vendor/bin/rector --dry-run
- name: Run tests
run: |
mkdir -p build
if [ "${{ matrix.php }}" = "8.3" ]; then
XDEBUG_MODE=coverage vendor/bin/phpunit
else
vendor/bin/phpunit --no-coverage
fi
- name: Upload coverage to Coveralls
if: matrix.php == '8.3'
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |-
if [ -n "$COVERALLS_REPO_TOKEN" ]; then
vendor/bin/php-coveralls --coverage_clover build/cov.xml --json_path build/coverage.json -v
else
echo "Skipping Coveralls upload — COVERALLS_REPO_TOKEN not set."
fi
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
### VisualStudioCode template
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

### Local environment
.env

### Composer template
composer.phar
/vendor/
Expand All @@ -15,3 +17,8 @@ composer.phar
### PHPUnit
build
.phpunit.result.cache

### Local agent/tooling scratch
.code-review-graph/
.docs/
tasks/
Loading
Loading