File tree Expand file tree Collapse file tree 1 file changed +28
-3
lines changed Expand file tree Collapse file tree 1 file changed +28
-3
lines changed Original file line number Diff line number Diff line change 12
12
test :
13
13
runs-on : ubuntu-latest
14
14
name : Run Test Cases
15
+
16
+ services :
17
+ mariadb :
18
+ image : mariadb:latest
19
+ ports :
20
+ - 3306:3306
21
+ env :
22
+ MARIADB_DATABASE : openbudgeteer
23
+ MARIADB_USER : openbudgeteer
24
+ MARIADB_PASSWORD : openbudgeteer
25
+ MARIADB_ROOT_PASSWORD : openbudgeteer
26
+ options : >-
27
+ --health-cmd="healthcheck.sh --connect --innodb_initialized"
28
+ --health-interval=10s
29
+ --health-timeout=5s
30
+ --health-retries=3
31
+
15
32
steps :
16
33
- name : Check out repo
17
34
uses : actions/checkout@v3
@@ -28,10 +45,18 @@ jobs:
28
45
run : dotnet build OpenBudgeteer.Blazor --configuration Release --no-restore
29
46
30
47
- name : Run Core Test Cases
48
+ env :
49
+ CONNECTION_PROVIDER : mariadb
50
+ CONNECTION_SERVER : localhost
51
+ CONNECTION_PORT : 3306
52
+ CONNECTION_USER : openbudgeteer
53
+ CONNECTION_PASSWORD : openbudgeteer
54
+ CONNECTION_DATABASE : openbudgeteer
31
55
run : dotnet test OpenBudgeteer.Core.Test
32
- deploy-docker :
56
+
57
+ deploy-docker-app :
33
58
runs-on : ubuntu-latest
34
- name : Build and Push Docker Image
59
+ name : Build and Push Docker Image (App)
35
60
needs : test
36
61
if : success()
37
62
steps :
56
81
context : .
57
82
push : true
58
83
tags : axelander/openbudgeteer:${{ github.ref_name }}
59
- platforms : linux/arm64,linux/amd64
84
+ platforms : linux/arm64,linux/amd64
You can’t perform that action at this time.
0 commit comments