-
Notifications
You must be signed in to change notification settings - Fork 44
53 lines (43 loc) · 1.38 KB
/
docker-image-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Docker Image (pre-release)
on:
push:
branches: [ github-actions-test ]
env:
DOTNET_VERSION: '8.0.100' # The .NET SDK version to use
jobs:
test:
runs-on: ubuntu-latest
name: Run Test Cases
services:
mariadb:
image: mariadb:latest
ports:
- 3306:3306
env:
MARIADB_DATABASE: openbudgeteer
MARIADB_USER: openbudgeteer
MARIADB_PASSWORD: openbudgeteer
#MARIADB_ROOT_PASSWORD: openbudgeteer
steps:
- name: Check running container
run: docker ps -a
- name: Check out repo
uses: actions/checkout@v3
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Install Blazor dependencies
run: dotnet restore OpenBudgeteer.Blazor
- name: Build Blazor
run: dotnet build OpenBudgeteer.Blazor --configuration Release --no-restore
- name: Run Core Test Cases
env:
CONNECTION_PROVIDER: mariadb
CONNECTION_SERVER: localhost
CONNECTION_PORT: 3306
CONNECTION_USER: openbudgeteer
CONNECTION_PASSWORD: openbudgeteer
CONNECTION_DATABASE: openbudgeteer
#CONNECTION_ROOT_PASSWORD: openbudgeteer
run: dotnet test OpenBudgeteer.Core.Test