-
Notifications
You must be signed in to change notification settings - Fork 8
46 lines (37 loc) · 1.14 KB
/
Copy pathcsharp-nautowired.yml
File metadata and controls
46 lines (37 loc) · 1.14 KB
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
name: Csharp-NAutowired
on:
push:
paths:
- 'Csharp-NAutowired/**'
- '.github/workflows/csharp-nautowired.yml'
pull_request:
paths:
- 'Csharp-NAutowired/**'
- '.github/workflows/csharp-nautowired.yml'
jobs:
matrix_build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ windows-latest ]
cs-versions: [ '3.1.x' ]
name: CSharp ${{ matrix.cs-versions }} Build on ${{ matrix.operating-system }}
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.cs-versions }}
- name: Build and test
working-directory: Csharp-NAutowired
run: |
dotnet restore
dotnet build --no-restore
dotnet test --no-build --verbosity normal
- name: Run the package
working-directory: Csharp-NAutowired
run: LcdNumbers\bin\Debug\netcoreapp3.0\LcdNumbers.exe 12345 3
- name: Run the package using build tool
working-directory: Csharp-NAutowired
run: dotnet run --project LcdNumbers 67890 3