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

feat!: Migrate to GitHub #6

Merged
merged 35 commits into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
5373ed7
chore(deps): remove Nexus dependencies
sanakhandvsa Dec 14, 2023
55192b1
chore(deps): Remove dependency on olcs-laminas
sanakhandvsa Dec 14, 2023
11748f5
chore(deps): Remove dependency on olcs/olcs-devtools
sanakhandvsa Dec 14, 2023
73d2b33
chore(ci-cd): add CI/CD workflow
sanakhandvsa Dec 14, 2023
5a31b1b
chore(config): add configuration files for maintaining code consisten…
sanakhandvsa Dec 14, 2023
ba59fc1
chore: moved phpUnit config to root directory
sanakhandvsa Dec 14, 2023
e7cb69e
chore(deps): added dev dependencies packages
sanakhandvsa Dec 14, 2023
9542d54
chore(deps): update PSR-4 autoloading configuration
sanakhandvsa Dec 14, 2023
ed275f0
chore(tests): update namespace in test files
sanakhandvsa Dec 14, 2023
521227c
chore(tests): missing testHelpers Trait file added
sanakhandvsa Dec 14, 2023
873433e
chore: updated .gitignore
sanakhandvsa Dec 14, 2023
08d0a14
chore(test): updated namespaces in the test file
sanakhandvsa Dec 14, 2023
e2ee0fc
Merge branch 'master' into migrate-to-github
sanakhandvsa Dec 20, 2023
2afec40
Feat: missing Abstract file added and namespacing added accordingly
sanakhandvsa Dec 20, 2023
883b564
Feat: Added missing namespace
sanakhandvsa Dec 27, 2023
0f12183
Feat: BootStrap reliance removed
sanakhandvsa Dec 27, 2023
3b1db56
Feat: TestHelper Class added
sanakhandvsa Dec 27, 2023
f83ce7c
Feat: BootStrap reliance removed
sanakhandvsa Dec 27, 2023
1d9bf52
Feat: Missing serviceManager method added
sanakhandvsa Dec 27, 2023
fe7e36d
Feat: Setting up Logger initially
sanakhandvsa Dec 29, 2023
1839cdb
Feat: Code standard correct path added
sanakhandvsa Dec 29, 2023
d606562
chore(deps): updated dependencies
sanakhandvsa Dec 29, 2023
5f4f6e5
chore(deps): added new dependencies
sanakhandvsa Jan 2, 2024
3f73563
chore(deps): update olcs/common to ^4.206.516
sanakhandvsa Jan 2, 2024
a12d6c6
chore: removed lock files
sanakhandvsa Jan 2, 2024
febb746
chore(deps): updated packages for composer to pick appropriate version
sanakhandvsa Jan 2, 2024
3135120
chore: updated .gitignore
sanakhandvsa Jan 2, 2024
aa78409
chore(deps): added, removed and updated packages as required and need…
sanakhandvsa Jan 2, 2024
70016f3
chore(deps): added, removed and updated packages as required and need…
sanakhandvsa Jan 3, 2024
17f8610
chore(deps): added, removed and updated packages as required and need…
sanakhandvsa Jan 3, 2024
c0e05cc
chore: Removed debugging flagged to stop on error
sanakhandvsa Jan 3, 2024
64112ff
chore: Removed in favor of default setting
sanakhandvsa Jan 3, 2024
b8894fa
chore(deps): added, removed and updated packages as required and need…
sanakhandvsa Jan 3, 2024
bf6a650
chore: project specific workflow added
sanakhandvsa Jan 3, 2024
26d7b38
chore: added correct path of phpstan and psalm
sanakhandvsa Jan 3, 2024
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
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
25 changes: 25 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI

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

jobs:
security:
uses: dvsa/.github/.github/workflows/php-library-security.yml@main
with:
php-versions: "[\"7.4\"]"
secrets:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

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

tests:
uses: dvsa/.github/.github/workflows/php-library-tests.yml@main
with:
php-versions: "[\"7.4\"]"
fail-fast: false
JoshuaLicense marked this conversation as resolved.
Show resolved Hide resolved
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: 53 additions & 56 deletions composer.json
JoshuaLicense marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -1,41 +1,35 @@
{
"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"
},
"require-dev": {
"laminas/laminas-developer-tools": "*",
JoshuaLicense marked this conversation as resolved.
Show resolved Hide resolved
"olcs/olcs-devtools": "~4.206.0",
"bamarni/composer-bin-plugin": "^1.8",
"johnkary/phpunit-speedtrap": "^4.0",
"mockery/mockery": "^1.6",
"phpstan/phpstan": "^0.12.100",
JoshuaLicense marked this conversation as resolved.
Show resolved Hide resolved
"san/san-session-toolbar": "*"
JoshuaLicense marked this conversation as resolved.
Show resolved Hide resolved
"phpunit/phpunit": "^9.6"
},
"autoload": {
"classmap": [
Expand All @@ -47,38 +41,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
Loading