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

Finalize integration #4

Merged
merged 6 commits into from
Apr 30, 2024
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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @apfelbox
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CI

on: [ push ]

jobs:
build-test:
runs-on: ubuntu-latest

strategy:
matrix:
php: ['8.3']

steps:
- name: Checkout Code
uses: actions/checkout@v4

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

- name: Display versions
run: |
php --version
php -r 'foreach (get_loaded_extensions() as $extension) echo $extension . " " . phpversion($extension) . PHP_EOL;'
php -i
- name: "Install Composer: Library / Composer Normalize"
run: composer install --optimize-autoloader --classmap-authoritative --no-interaction
working-directory: _init/library/vendor-bin/c-norm

- name: "Install Composer: Library / PHP CS Fixer"
run: composer install --optimize-autoloader --classmap-authoritative --no-interaction
working-directory: _init/library/vendor-bin/cs-fixer

- name: "Install Composer: Library / PHPStan"
run: composer install --optimize-autoloader --classmap-authoritative --no-interaction
working-directory: _init/library/vendor-bin/phpstan

- name: "Install Composer: Symfony / Composer Normalize"
run: composer install --optimize-autoloader --classmap-authoritative --no-interaction
working-directory: _init/symfony/vendor-bin/c-norm

- name: "Install Composer: Symfony / PHP CS Fixer"
run: composer install --optimize-autoloader --classmap-authoritative --no-interaction
working-directory: _init/symfony/vendor-bin/cs-fixer

- name: "Install Composer: Symfony / PHPStan"
run: composer install --optimize-autoloader --classmap-authoritative --no-interaction
working-directory: _init/symfony/vendor-bin/phpstan
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
1.0.0
=====

Initial Release `\o/`
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Janus PHP
==========

Janus is a library to provide the config for our CI / code style tools.

> 📚 [**Read the docs**](https://21torr-docs.pages.dev/docs/php/tooling/janus-php/)
5 changes: 3 additions & 2 deletions _init/library/vendor-bin/c-norm/composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"require": {
"ergebnis/composer-normalize": "^2.42"
"require-dev": {
"ergebnis/composer-normalize": "^2.42",
"roave/security-advisories": "dev-latest"
},
"config": {
"allow-plugins": {
Expand Down
7 changes: 4 additions & 3 deletions _init/library/vendor-bin/cs-fixer/composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"require-dev": {
"21torr/php-cs-fixer": "^1.0"
}
"require-dev": {
"21torr/php-cs-fixer": "^1.0",
"roave/security-advisories": "dev-latest"
}
}
5 changes: 4 additions & 1 deletion _init/library/vendor-bin/phpstan/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"roave/security-advisories": "dev-latest"
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"phpstan/extension-installer": true
}
}
}
5 changes: 3 additions & 2 deletions _init/symfony/vendor-bin/c-norm/composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"require": {
"ergebnis/composer-normalize": "^2.42"
"require-dev": {
"ergebnis/composer-normalize": "^2.42",
"roave/security-advisories": "dev-latest"
},
"config": {
"allow-plugins": {
Expand Down
7 changes: 4 additions & 3 deletions _init/symfony/vendor-bin/cs-fixer/composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"require-dev": {
"21torr/php-cs-fixer": "^1.0"
}
"require-dev": {
"21torr/php-cs-fixer": "^1.0",
"roave/security-advisories": "dev-latest"
}
}
5 changes: 4 additions & 1 deletion _init/symfony/vendor-bin/phpstan/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"roave/security-advisories": "dev-latest"
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"phpstan/extension-installer": true
}
}
}
6 changes: 2 additions & 4 deletions bin/janus
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function initializeSymfony (SymfonyStyle $io) : int
],
],
"require-dev" => [
"bamarni/composer-bin-plugin" => "*",
"bamarni/composer-bin-plugin" => "^1.8",
"roave/security-advisories" => "dev-latest",
],
"scripts" => [
Expand All @@ -95,7 +95,6 @@ function initializeSymfony (SymfonyStyle $io) : int
"vendor-bin/cs-fixer/vendor/bin/php-cs-fixer fix --diff --config vendor-bin/cs-fixer/vendor/21torr/php-cs-fixer/.php-cs-fixer.dist.php --dry-run --no-interaction --ansi",
],
"test" => [
"phpunit",
"vendor-bin/test/vendor/bin/phpstan analyze -c phpstan.neon . --ansi",
],
],
Expand Down Expand Up @@ -129,7 +128,7 @@ function initializeLibrary (SymfonyStyle $io) : int
],
],
"require-dev" => [
"bamarni/composer-bin-plugin" => "*",
"bamarni/composer-bin-plugin" => "^1.8",
"roave/security-advisories" => "dev-latest",
],
"scripts" => [
Expand All @@ -142,7 +141,6 @@ function initializeLibrary (SymfonyStyle $io) : int
"vendor-bin/cs-fixer/vendor/bin/php-cs-fixer fix --diff --config vendor-bin/cs-fixer/vendor/21torr/php-cs-fixer/.php-cs-fixer.dist.php --dry-run --no-interaction --ansi",
],
"test" => [
"phpunit",
"vendor-bin/test/vendor/bin/phpstan analyze -c phpstan.neon . --ansi",
],
],
Expand Down