Skip to content

Commit

Permalink
Renamed github workflows [SLE-184]
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelgfeller committed Jul 6, 2023
1 parent c9eb4a9 commit 3ee0c81
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 18 deletions.
File renamed without changes.
21 changes: 11 additions & 10 deletions .github/workflows/master.yml → .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: 🚀 Deployment

# Only trigger, when the build workflow succeeded
on:
push:
branches:
- master
pull_request:
types: [ opened, synchronize, reopened ]
workflow_run:
workflows: [ "🧪 Build test" ]
types:
- completed

jobs:
run:
Expand Down Expand Up @@ -49,7 +50,7 @@ jobs:
.git*/**
docs/**
tests/**
- name: Executing database migrations
uses: appleboy/[email protected]
with:
Expand All @@ -58,7 +59,7 @@ jobs:
key: ${{ secrets.SSH_KEY }}
passphrase: ${{ secrets.SSH_KEY_PASSPHRASE }}
port: ${{ secrets.SSH_PORT }}
script: |
script: |
cd ${{ secrets.DEMO_PROJECT_ROOT }}
chmod +x vendor/bin/phinx
composer migrate
Expand Down Expand Up @@ -86,6 +87,6 @@ jobs:
passphrase: ${{ secrets.CARE_POINT_SSH_KEY_PASSPHRASE }}
port: ${{ secrets.CARE_POINT_SSH_PORT }}
script: |
cd ${{ secrets.CARE_POINT_PROJECT_ROOT }}
chmod +x vendor/bin/phinx
composer migrate
cd ${{ secrets.CARE_POINT_PROJECT_ROOT }}
chmod +x vendor/bin/phinx
composer migrate
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"nyholm/psr7-server": "^1",
"fig/http-message-util": "^1.1",
"ext-gettext": "*",
"ext-intl": "*"
"ext-intl": "*",
"php": "^8.1"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 2 additions & 2 deletions resources/seeds/AdminUserSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ public function run(): void
$userData = [
[
'first_name' => 'Admin',
'surname' => null,
'surname' => 'Admin',
'user_role_id' => 1,
'status' => 'active',
'email' => 'admin@admin.com',
'email' => 'admin@user.com',
'password_hash' => '$2y$10$bHOxtOEs/vBsVnzDLqP3oexZp2yi9aO.DvIloFo0/UZAksMn.VBKm', // password: 12345678
],
];
Expand Down
10 changes: 5 additions & 5 deletions resources/seeds/UserSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ public function run(): void
$userData = [
[
'id' => 2,
'first_name' => 'Manager',
'surname' => 'Advisor',
'first_name' => 'Managing-advisor',
'surname' => 'Surname',
'user_role_id' => 2,
'status' => 'active',
'language' => 'en_US',
'email' => 'managing@advisor.com',
'email' => 'managing-advisor@user.com',
'password_hash' => '$2y$10$bHOxtOEs/vBsVnzDLqP3oexZp2yi9aO.DvIloFo0/UZAksMn.VBKm', // password: 12345678
],
[
'id' => 3,
'first_name' => 'Advisor',
'surname' => 'User',
'surname' => 'Surname',
'user_role_id' => 3,
'status' => 'active',
'language' => 'de_CH',
Expand All @@ -54,7 +54,7 @@ public function run(): void
[
'id' => 4,
'first_name' => 'Newcomer',
'surname' => 'User',
'surname' => 'Surname',
'user_role_id' => 4,
'status' => 'active',
'language' => 'fr_CH',
Expand Down

0 comments on commit 3ee0c81

Please sign in to comment.