-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (37 loc) · 1.81 KB
/
dotnet.yml
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
47
name: BarcodeReader.ImageSharp Build Pipeline
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- name: Checking Out Code
uses: actions/checkout@v3
- name: Installing .NET Versions
uses: actions/setup-dotnet@v2
with:
dotnet-version: |
6.0.x
5.0.x
3.1.x
- name: Restore NuGet packages for Solution
run: dotnet restore BarcodeReader.ImageSharp.sln --verbosity normal
- name: Build Class Library Project
run: dotnet build .\BarcodeReader.ImageSharp\BarcodeReader.ImageSharp.csproj --no-restore --framework net6.0 --verbosity normal
- name: Build Example Project
run: dotnet build .\BarcodeReader.ImageSharp.Examples/BarcodeReader.ImageSharp.Examples.csproj --no-restore --framework net6.0 --verbosity normal
- name: Run Tests using .NET 6
run: dotnet test .\BarcodeReader.ImageSharp.UnitTests\BarcodeReader.ImageSharp.UnitTests.csproj --framework net6.0 --verbosity normal
- name: Run Tests using .NET 5
run: dotnet test .\BarcodeReader.ImageSharp.UnitTests\BarcodeReader.ImageSharp.UnitTests.csproj --framework net5.0 --verbosity normal
- name: Run Tests using .NET Core 3.1
run: dotnet test .\BarcodeReader.ImageSharp.UnitTests\BarcodeReader.ImageSharp.UnitTests.csproj --framework netcoreapp3.1 --verbosity normal
- name: Run Tests using .NET Framework 4.8
run: dotnet test .\BarcodeReader.ImageSharp.UnitTests\BarcodeReader.ImageSharp.UnitTests.csproj --framework net48 --verbosity normal
- name: Run Tests using .NET Framwork 4.7.2
run: dotnet test .\BarcodeReader.ImageSharp.UnitTests\BarcodeReader.ImageSharp.UnitTests.csproj --framework net472 --verbosity normal