Skip to content

Commit 20fbee0

Browse files
authored
Update Dotnet_template.yml
1 parent 04eee41 commit 20fbee0

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

.github/workflows/Dotnet_template.yml

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,32 @@
11
name: CI
2-
on: [push]
3-
#push:
4-
#branches:
5-
# - master
6-
#tags:
7-
# - v*.*.*
8-
#pull_request:
9-
# branches:
10-
# - master
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- v*.*.*
9+
pull_request:
10+
branches:
11+
- master
1112

1213
jobs:
13-
Build:
14-
runs-on: '${{ matrix.os }}'
15-
strategy:
16-
matrix:
17-
os:
18-
- ubuntu-latest
14+
dotnet-template-azure-iot-edge-module:
15+
name: dotnet-template-azure-iot-edge-module
16+
runs-on: ubuntu-latest
1917
steps:
2018
- uses: actions/checkout@v2
21-
- run: mkdir -p .nuget
22-
- run: >-
19+
- name: Install NodeJs
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: 16.x
23+
run: mkdir -p .nuget
24+
- name: Download nugget
25+
- run: >-
2326
wget -O .nuget/nuget.exe
2427
https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
2528
- run: mono .nuget/nuget.exe
29+
- name: dotnet test
2630
- run: dotnet test Test/Test.csproj
2731
- run: mono .nuget/nuget.exe pack -NoDefaultExcludes
2832
- name: GitHub Release

0 commit comments

Comments
 (0)