Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims committed Mar 23, 2023
1 parent bd336ff commit 89f2729
Show file tree
Hide file tree
Showing 29 changed files with 2,061 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
root = true

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

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2

[docker-compose.yml]
indent_size = 4
12 changes: 12 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
docs/ export-ignore
tests/ export-ignore
.github/ export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
CHANGELOG.md export-ignore
infection.json5.dis export-ignore
phpstan.neon.dist export-ignore
phpunit.xml.dist export-ignore
psalm.xml.dist export-ignore
rector.php export-ignore
30 changes: 30 additions & 0 deletions .github/workflows/composer-normalize.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened
- ready_for_review
- converted_to_draft
- review_requested
push:
branches:
- 1.x

jobs:
run:
name: php-cs-fixer
runs-on: ${{ matrix.operating-systems }}

strategy:
fail-fast: false
matrix:
operating-systems:
- ubuntu-latest
php-versions:
- 8.1

steps:
- uses: actions/checkout@v3
- uses: docker://ergebnis/composer-normalize-action
36 changes: 36 additions & 0 deletions .github/workflows/composer-validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
on:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened
- ready_for_review
- converted_to_draft
- review_requested
push:
branches:
- 1.x

jobs:
run:
name: php-cs-fixer
runs-on: ${{ matrix.operating-systems }}

strategy:
fail-fast: false
matrix:
operating-systems:
- ubuntu-latest
php-versions:
- 8.1

steps:
- uses: actions/checkout@v3

- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: pcov

- run: composer validate
14 changes: 14 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Dependency Review"
on: [pull_request_target]

permissions:
contents: read

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repository"
uses: actions/checkout@v3
- name: "Dependency Review"
uses: actions/dependency-review-action@v2
52 changes: 52 additions & 0 deletions .github/workflows/pest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
on:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened
- ready_for_review
- converted_to_draft
- review_requested
push:
branches:
- 1.x

jobs:
run:
name: php-cs-fixer
runs-on: ${{ matrix.operating-systems }}

strategy:
fail-fast: false
matrix:
operating-systems:
- ubuntu-latest
php-versions:
- 8.1

steps:
- uses: actions/checkout@v3

- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: pcov

- id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-

- run: composer install --no-progress --prefer-dist --optimize-autoloader

- run: vendor/bin/pest --order-by random --coverage --min=100 --ci

- uses: codecov/codecov-action@v3
with:
directory: ./coverage/
flags: unittests
47 changes: 47 additions & 0 deletions .github/workflows/php-cs-fixer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
on:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened
- ready_for_review
- converted_to_draft
- review_requested
push:
branches:
- 1.x

jobs:
run:
name: php-cs-fixer
runs-on: ${{ matrix.operating-systems }}

strategy:
fail-fast: false
matrix:
operating-systems:
- ubuntu-latest
php-versions:
- 8.1

steps:
- uses: actions/checkout@v3

- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: pcov

- id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-

- run: composer install --no-progress --prefer-dist --optimize-autoloader

- run: vendor/bin/php-cs-fixer fix src --dry-run --diff
47 changes: 47 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
on:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened
- ready_for_review
- converted_to_draft
- review_requested
push:
branches:
- 1.x

jobs:
run:
name: php-cs-fixer
runs-on: ${{ matrix.operating-systems }}

strategy:
fail-fast: false
matrix:
operating-systems:
- ubuntu-latest
php-versions:
- 8.1

steps:
- uses: actions/checkout@v3

- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: pcov

- id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-

- run: composer install --no-progress --prefer-dist --optimize-autoloader

- run: vendor/bin/phpstan analyze
47 changes: 47 additions & 0 deletions .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
on:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened
- ready_for_review
- converted_to_draft
- review_requested
push:
branches:
- 1.x

jobs:
run:
name: php-cs-fixer
runs-on: ${{ matrix.operating-systems }}

strategy:
fail-fast: false
matrix:
operating-systems:
- ubuntu-latest
php-versions:
- 8.1

steps:
- uses: actions/checkout@v3

- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: pcov

- id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-

- run: composer install --no-progress --prefer-dist --optimize-autoloader

- run: vendor/bin/psalm
47 changes: 47 additions & 0 deletions .github/workflows/rector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
on:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened
- ready_for_review
- converted_to_draft
- review_requested
push:
branches:
- 1.x

jobs:
run:
name: php-cs-fixer
runs-on: ${{ matrix.operating-systems }}

strategy:
fail-fast: false
matrix:
operating-systems:
- ubuntu-latest
php-versions:
- 8.1

steps:
- uses: actions/checkout@v3

- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: pcov

- id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-

- run: composer install --no-progress --prefer-dist --optimize-autoloader

- run: vendor/bin/rector process src --dry-run
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
vendor/
coverage/
composer.lock
.php-cs-fixer.cache
.phpunit.result.cache
.DS_Store
composer.local.json
NOTES.md
Loading

0 comments on commit 89f2729

Please sign in to comment.