Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
feat!: migrate to GitHub (#6)
Browse files Browse the repository at this point in the history
* chore(deps): remove Nexus dependencies

* chore(deps): Remove dependency on olcs-laminas

* chore(deps): Remove dependency on olcs/olcs-devtools

* chore(ci-cd): add CI/CD workflow

* chore(config): add configuration files for maintaining code consistency and quality

* chore: moved phpUnit config to root directory

* chore(deps): added dev dependencies packages

* chore(deps): update PSR-4 autoloading configuration

* chore(tests): update namespace in test files

* chore(tests): missing testHelpers Trait file added

* chore: updated .gitignore

* chore(test): updated namespaces in the test file

* Feat: missing Abstract file added and namespacing added accordingly

* Feat: Added missing namespace

* Feat: BootStrap reliance removed

* Feat: TestHelper Class added

* Feat: BootStrap reliance removed

* Feat: Missing serviceManager method added

* Feat: Setting up Logger initially

* Feat: Code standard correct path added

* chore(deps): updated dependencies

* chore(deps): added new dependencies

* chore(deps): update olcs/common to ^4.206.516

* chore: removed lock files

* chore(deps): updated packages for composer to pick appropriate version

* chore: updated .gitignore

* chore(deps): added, removed and updated packages as required and need accordingly

* chore(deps): added, removed and updated packages as required and needed accordingly

* chore(deps): added, removed and updated packages as required and needed accordingly

* chore: Removed debugging flagged to stop on error

* chore: Removed in favor of default setting

* chore(deps): added, removed and updated packages as required and needed accordingly

* chore: project specific workflow added

* chore: added correct path of phpstan and psalm
  • Loading branch information
sanakhandvsa authored Jan 5, 2024
1 parent 00f6a61 commit 75aac02
Show file tree
Hide file tree
Showing 56 changed files with 3,904 additions and 2,775 deletions.
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# http://editorconfig.org

root = true

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

[*.md]
trim_trailing_whitespace = false

[*.php]
indent_size = 4
24 changes: 24 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CD

on:
push:
branches:
- main

jobs:
release-please:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
outputs:
tag_name: ${{ steps.release.outputs.tag_name }}
release_created: ${{ steps.release.outputs.release_created }}
sha: ${{ steps.release.outputs.sha }}
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: php
package-name: olcs-selfserve
23 changes: 23 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI

on:
pull_request:
schedule:
- cron: '0 0 * * 1'

jobs:
security:
uses: dvsa/.github/.github/workflows/php-security.yml@main
secrets:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

static-analysis:
uses: dvsa/.github/.github/workflows/php-static.yml@main
with:
php-version: '7.4'

tests:
uses: dvsa/.github/.github/workflows/php-tests.yml@main
with:
php-versions: "[\"7.4\"]"
fail-fast: false
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ nbproject
.idea
.project
.settings
vendor/
vendor
test/coverage-report
config/autoload/*.php
.sublime-project
Expand All @@ -17,3 +17,12 @@ node_modules
.vscode/
test/coverage/
.scannerwork/
/vendor-bin/*/composer.lock
.phpunit.result.cache

# Non-dist files for the static analysis.
# This allows developers to set a different (more strict) static analysis locally.
phpcs.xml
phpstan.neon
phpunit.xml
psalm.xml
109 changes: 54 additions & 55 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,36 @@
{
"name": "olcs/olcs-selfserve",
"description": "OLCS Self Service Web Site",
"repositories": [
{
"packagist": false
},
{
"type": "composer",
"url": "https://nexus.olcs.dev-dvsacloud.uk/repository/Packagist-Proxy",
"only": [
"olcs/olcs-logging",
"olcs/olcs-utils",
"olcs/olcs-transfer",
"olcs/olcs-auth",
"olcs/olcs-common"
]
},
{
"url": "https://nexus.olcs.dev-dvsacloud.uk/repository/OLCS",
"type": "composer"
},
{
"url": "https://nexus.olcs.dev-dvsacloud.uk/repository/Packagist-Proxy",
"type": "composer"
}
],
"require": {
"php": ">=7.4",
"dvsa/laminas-config-cloud-parameters": "^0.1.0",
"olcs/olcs-frontend-deps": "~4.206.0",
"olcs/olcs-laminas": "~2.5.0"
"php": "^7.4",
"container-interop/container-interop": "^1.2",
"doctrine/annotations": "^1.14.2",
"doctrine/doctrine-module": "^1",
"dvsa/laminas-config-cloud-parameters": "^0.2.0",
"laminas/laminas-authentication": "^2.6",
"laminas/laminas-eventmanager": "^2.6",
"laminas/laminas-form": "^2.13",
"laminas/laminas-http": "^2.8",
"laminas/laminas-i18n": "^2.14",
"laminas/laminas-mvc": "^2.7",
"laminas/laminas-serializer": "^2.10",
"laminas/laminas-servicemanager": "^2.7",
"laminas/laminas-session": "^2.8",
"laminas/laminas-stdlib": "^2.7",
"laminas/laminas-view": "^2.11",
"lm-commons/lmc-rbac-mvc": "^2.6",
"olcs/olcs-auth": "^5.0.0",
"olcs/olcs-common": "^5.0.0",
"olcs/olcs-logging": "^5.0.0",
"olcs/olcs-transfer": "^5.0.0",
"olcs/olcs-utils": "^5.0.0"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.8",
"johnkary/phpunit-speedtrap": "^4.0",
"laminas/laminas-developer-tools": "*",
"olcs/olcs-devtools": "~4.206.0",
"phpstan/phpstan": "^0.12.100",
"mockery/mockery": "^1.6",
"phpunit/phpunit": "^9.6",
"san/san-session-toolbar": "*"
},
"autoload": {
Expand All @@ -47,38 +43,41 @@
"Common\\": "vendor/olcs/olcs-common/Common/src/Common"
}
},
"autoload-dev": {
"psr-4": {
"OlcsTest\\": "test/Olcs/src",
"PermitsTest\\": "test/Permits/src"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"preferred-install": "dist",
"secure-http": false,
"platform": {
"php": "7.4.33"
},
"sort-packages": true,
"allow-plugins": {
"laminas/laminas-component-installer": true,
"laminas/laminas-dependency-plugin": true,
"elendev/composer-push": true,
"phpstan/extension-installer": true
"bamarni/composer-bin-plugin": true,
"laminas/laminas-dependency-plugin": true
}
},
"scripts": {
"ut": "vendor/bin/phpunit -c test/phpunit.xml --stop-on-failure",
"review": "vendor/bin/review",
"cs": "vendor/bin/phpcs --severity=1 --standard=vendor/dvsa/coding-standards/src/Profiles/DVSA/CS/ruleset.xml",
"coverage": "vendor/bin/phpunit -c test/phpunit.xml --coverage-html ./test/coverage/html",
"sonar": "vendor/bin/phpunit -c test/phpunit.xml --coverage-clover ./test/coverage/coverage-report.clover --log-junit ./test/coverage/log.junit",
"update-syms": "vendor/bin/composer-update-syms"
},
"scripts": {
"bin": "echo 'bin not installed'",
"post-install-cmd": [
"@composer bin all install"
],
"test": "phpunit",
"phpcs": "phpcs",
"psalm": "psalm",
"phpstan": "phpstan",
"all": [
"@test",
"@phpcs",
"@psalm",
"@phpstan"
]
},
"extra": {
"nexus-push": {
"url": "https://nexus.olcs.dev-dvsacloud.uk/repository/olcs-selfserve",
"ignore": [
"test/",
"config/autoload/local.php",
"node_modules/"
]
}
"bamarni-bin": {
"bin-links": true,
"forward-command": true
}
}
}
Loading

0 comments on commit 75aac02

Please sign in to comment.