Skip to content

Commit bfc7068

Browse files
committed
17 - introduced dotnet test job
- Renamed file - added containerized test job - making buld job depended on test
1 parent 8ab0cca commit bfc7068

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed
Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,26 @@ name: .NET Application Build
22

33
on:
44
push:
5-
branches: [ "main" ]
6-
pull_request:
7-
branches: [ "main" ]
8-
workflow_dispatch:
5+
workflow_dispatch:
96

107
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
container: mcr.microsoft.com/dotnet/sdk:8.0
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Run tests
18+
run: dotnet test
19+
1120
build:
1221
runs-on: windows-latest # For a list of available runner types, refer to
13-
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
22+
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
23+
24+
needs: test
1425
steps:
1526
- name: Checkout
1627
uses: actions/checkout@v4

0 commit comments

Comments
 (0)