Skip to content

Commit 1a7dc03

Browse files
author
mathieuauclair
committed
Specified project
1 parent 1190364 commit 1a7dc03

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,22 @@ on:
77
branches: [ master ]
88

99
jobs:
10-
services:
11-
mssql:
12-
image: mcr.microsoft.com/mssql/server:2022-latest
13-
ports:
14-
- 1433:1433
15-
env:
16-
ACCEPT_EULA: Y
17-
SA_PASSWORD: "StrongPassw0rd!"
18-
options: >-
19-
--health-cmd="/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'StrongPassw0rd!' -Q 'SELECT 1'"
20-
--health-interval=10s
21-
--health-timeout=5s
22-
--health-retries=5
10+
build_and_run_tests:
11+
runs-on: ubuntu-latest
12+
container: mcr.microsoft.com/dotnet/sdk:8.0
13+
services:
14+
mssql:
15+
image: mcr.microsoft.com/mssql/server:2022-latest
16+
ports:
17+
- 1433:1433
18+
env:
19+
ACCEPT_EULA: Y
20+
SA_PASSWORD: "StrongPassw0rd\!"
21+
options: >-
22+
--health-cmd="/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'StrongPassw0rd!' -Q 'SELECT 1'"
23+
--health-interval=10s
24+
--health-timeout=5s
25+
--health-retries=5
2326
steps:
2427
- uses: actions/checkout@v4
2528
- name: Install Node.js
@@ -28,7 +31,7 @@ jobs:
2831
node-version: 18.15.0
2932
- name: Build
3033
run: dotnet build Balance/WebApp.csproj
31-
- name: Run migrations
32-
run: dotnet ef database update
34+
- name: Migrations
35+
run: dotnet ef database update --project Balance/WebApp.csproj
3336
- name: Test
3437
run: dotnet test Balance.Tests/Balance.Tests.csproj

0 commit comments

Comments
 (0)