mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-12-06 17:52:16 +00:00
Add SSO extension to the extension manifest and build workflows
This commit is contained in:
committed by
Gregor Vostrak
parent
7912b0a237
commit
321a50cd81
16
.github/workflows/build-onpremise.yml
vendored
16
.github/workflows/build-onpremise.yml
vendored
@@ -105,6 +105,8 @@ jobs:
|
||||
echo "invoicing_ref=$(jq -r '.Invoicing.ref' extensions/manifest.json)"
|
||||
echo "auditing_repository=$(jq -r '.Auditing.repository' extensions/manifest.json)"
|
||||
echo "auditing_ref=$(jq -r '.Auditing.ref' extensions/manifest.json)"
|
||||
echo "sso_repository=$(jq -r '.SSO.repository' extensions/manifest.json)"
|
||||
echo "sso_ref=$(jq -r '.SSO.ref' extensions/manifest.json)"
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: "Checkout invoicing extension"
|
||||
@@ -135,12 +137,26 @@ jobs:
|
||||
- name: "Install npm dependencies in auditing extension"
|
||||
run: cd extensions/Auditing && npm ci
|
||||
|
||||
- name: "Checkout SSO extension"
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
repository: ${{ steps.extension-manifest.outputs.sso_repository }}
|
||||
ref: ${{ steps.extension-manifest.outputs.sso_ref }}
|
||||
path: extensions/SSO
|
||||
ssh-key: ${{ secrets.SSH_PRIVATE_KEY_SSO_EXTENSION }}
|
||||
|
||||
- name: "Install composer dependencies in SSO extension"
|
||||
run: cd extensions/SSO && composer install --no-dev --no-ansi --no-interaction --prefer-dist --ignore-platform-reqs --classmap-authoritative
|
||||
|
||||
- name: "Activate invoicing extension"
|
||||
run: php artisan module:enable Invoicing
|
||||
|
||||
- name: "Activate auditing extension"
|
||||
run: php artisan module:enable Auditing
|
||||
|
||||
- name: "Activate SSO extension"
|
||||
run: php artisan module:enable SSO
|
||||
|
||||
- name: "Install npm dependencies"
|
||||
run: npm ci
|
||||
|
||||
|
||||
21
.github/workflows/build-private.yml
vendored
21
.github/workflows/build-private.yml
vendored
@@ -87,6 +87,8 @@ jobs:
|
||||
echo "invoicing_ref=$(jq -r '.Invoicing.ref' extensions/manifest.json)"
|
||||
echo "auditing_repository=$(jq -r '.Auditing.repository' extensions/manifest.json)"
|
||||
echo "auditing_ref=$(jq -r '.Auditing.ref' extensions/manifest.json)"
|
||||
echo "sso_repository=$(jq -r '.SSO.repository' extensions/manifest.json)"
|
||||
echo "sso_ref=$(jq -r '.SSO.ref' extensions/manifest.json)"
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: "Checkout billing extension"
|
||||
@@ -167,6 +169,22 @@ jobs:
|
||||
- name: "Install npm dependencies in auditing extension"
|
||||
run: cd extensions/Auditing && npm ci
|
||||
|
||||
- name: "Checkout SSO extension"
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
repository: ${{ steps.extension-manifest.outputs.sso_repository }}
|
||||
ref: ${{ steps.extension-manifest.outputs.sso_ref }}
|
||||
path: extensions/SSO
|
||||
ssh-key: ${{ secrets.SSH_PRIVATE_KEY_SSO_EXTENSION }}
|
||||
|
||||
- name: "Install composer dependencies in SSO extension"
|
||||
uses: php-actions/composer@v6
|
||||
with:
|
||||
working_dir: "extensions/SSO"
|
||||
command: install
|
||||
only_args: --no-dev --no-ansi --no-interaction --prefer-dist --ignore-platform-reqs --classmap-authoritative
|
||||
php_version: 8.3
|
||||
|
||||
- name: "Setup PHP with PECL extension"
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
@@ -193,6 +211,9 @@ jobs:
|
||||
- name: "Activate auditing extension"
|
||||
run: php artisan module:enable Auditing
|
||||
|
||||
- name: "Activate SSO extension"
|
||||
run: php artisan module:enable SSO
|
||||
|
||||
- name: "Install npm dependencies"
|
||||
run: npm ci
|
||||
|
||||
|
||||
@@ -14,5 +14,9 @@
|
||||
"Auditing": {
|
||||
"repository": "solidtime-io/extension-auditing",
|
||||
"ref": "v0.0.5"
|
||||
},
|
||||
"SSO": {
|
||||
"repository": "solidtime-io/extension-sso",
|
||||
"ref": "feature/sso"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user