Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update and apply fixes to test suite #27

Merged
merged 2 commits into from
Jun 26, 2023
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
147 changes: 0 additions & 147 deletions .circleci/config.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/dependabot.yml

This file was deleted.

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

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/php_composer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Composer"

on:
pull_request:
merge_group:
push:
branches: ["master", "main"]

permissions: {}

defaults:
run:
working-directory: app

jobs:
validate:
name: "Validate"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- run: composer validate

normalize:
name: "Normalize"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- run: composer require --dev ergebnis/composer-normalize

- run: composer config allow-plugins.ergebnis/composer-normalize true

- run: composer normalize
35 changes: 35 additions & 0 deletions .github/workflows/php_pest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "PEST"

on:
pull_request:
merge_group:
push:
branches: ["master", "main"]

permissions: {}

defaults:
run:
working-directory: app

jobs:
pest:
name: "Scan"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: shivammathur/setup-php@v2
with:
php-version: "8.1"
coverage: pcov

- run: composer install --no-progress

- run: vendor/bin/pest --order-by random --fail-on-risky --stop-on-defect --coverage --parallel

- uses: codecov/codecov-action@v3
with:
directory: ./coverage/
flags: unittests
29 changes: 29 additions & 0 deletions .github/workflows/php_phpcsf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "PHP CS Fixer"

on:
pull_request:
merge_group:
push:
branches: ["master", "main"]

permissions: {}

defaults:
run:
working-directory: app

jobs:
phpcsf:
name: "Scan"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: shivammathur/setup-php@v2
with:
php-version: "8.1"

- run: composer install --no-progress

- run: vendor/bin/php-cs-fixer fix src --dry-run --diff
29 changes: 29 additions & 0 deletions .github/workflows/php_phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "PHPStan"

on:
pull_request:
merge_group:
push:
branches: ["master", "main"]

permissions: {}

defaults:
run:
working-directory: app

jobs:
phpstan:
name: "Scan"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: shivammathur/setup-php@v2
with:
php-version: "8.1"

- run: composer install --no-progress

# - run: vendor/bin/phpstan analyze --no-ansi --no-progress --debug
29 changes: 29 additions & 0 deletions .github/workflows/php_psalm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "Psalm"

on:
pull_request:
merge_group:
push:
branches: ["master", "main"]

permissions: {}

defaults:
run:
working-directory: app

jobs:
psalm:
name: "Scan"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: shivammathur/setup-php@v2
with:
php-version: "8.1"

- run: composer install --no-progress

# - run: vendor/bin/psalm
29 changes: 29 additions & 0 deletions .github/workflows/php_rector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "Rector"

on:
pull_request:
merge_group:
push:
branches: ["master", "main"]

permissions: {}

defaults:
run:
working-directory: app

jobs:
rector:
name: "Scan"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: shivammathur/setup-php@v2
with:
php-version: "8.1"

- run: composer install --no-progress

- run: vendor/bin/rector process --dry-run
Loading