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

(ci) initial ci implementation #22

Closed
wants to merge 12 commits into from
Closed
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
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: CI

on:
pull_request: null

jobs:
Bundle:
name: 'Automated fixes'
uses: nswdpc/ci-files/.github/workflows/bundle.yml@main
secrets: inherit
PHPStan:
name: 'PHPStan (analyse)'
uses: nswdpc/ci-files/.github/workflows/phpstan.yml@main
secrets: inherit
needs: Bundle
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
/vendor/
.DS_Store
/.php-cs-fixer.cache
/codeception.yml
/tests/codeception/tests/_output/
/public/
/composer.lock
node_modules
21 changes: 0 additions & 21 deletions .php-cs-fixer.dist.php

This file was deleted.

Empty file added ci.txt
Empty file.
28 changes: 23 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@
"client/static"
]
},
"support": {
"key" : "value"
},
"repositories": [
{
"type": "git",
"url": "https://github.com/nswdpc/ci-files.git"
}
],
"require": {
"dnadesign/silverstripe-elemental": "^5",
"silverstripe/framework" : "^5",
Expand All @@ -43,9 +46,14 @@
"symbiote/silverstripe-multivaluefield" : "^6"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"cambis/silverstripe-rector": "^0.5.1",
"friendsofphp/php-cs-fixer": "^3",
"vlucas/phpdotenv": "^5"
"phpstan/phpstan": "^1",
"phpunit/phpunit": "^9.5",
"rector/rector": "^1",
"syntro/silverstripe-phpstan": "^5",
"vlucas/phpdotenv": "^5",
"nswdpc/ci-files": "*"
},
"autoload": {
"psr-4": {
Expand All @@ -60,5 +68,15 @@
"NSWDPC\\Chimple\\Traits\\": "src/Traits/",
"NSWDPC\\Chimple\\Tests\\": "tests/"
}
},
"prefer-stable": true,
"minimum-stability": "dev",
"config": {
"allow-plugins": {
"composer/installers": true,
"silverstripe/recipe-plugin": true,
"silverstripe/vendor-plugin": true,
"phpstan/extension-installer": true
}
}
}
Loading