-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 1.05 KB
/
build.yaml
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
name: Build
on:
workflow_dispatch:
push:
branches:
- main
paths:
- Aspire.Database.TestContainers
env:
DOTNET_VERSION: "9.x"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout to the branch
uses: actions/checkout@v3
- name: Setup .Net
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{env.DOTNET_VERSION}}
- name: Restore
working-directory: Aspire.Database.TestContainers
run: dotnet restore ./Aspire.Database.TestContainers.sln
- name: Build
working-directory: Aspire.Database.TestContainers
run: dotnet build ./Aspire.Database.TestContainers.sln --configuration Release --no-restore
- name: Test
working-directory: Aspire.Database.TestContainers
run: dotnet test ./Aspire.Database.TestContainers.sln --configuration Release --no-restore --no-build