-
Notifications
You must be signed in to change notification settings - Fork 51
38 lines (34 loc) · 1.08 KB
/
build.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
name: Build
on: [push, pull_request]
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [ '6.0', '7.0' ]
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -f net${{ matrix.dotnet-version }}
- name: Test
run: dotnet test BitPayUnitTest --no-restore --verbosity n -f net${{ matrix.dotnet-version }}
build-and-test-48:
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- name: Setup MSBuild path
uses: microsoft/[email protected]
with:
dotNetVersion: '4.8.x'
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -f net48
- name: Test
run: dotnet test BitPayUnitTest --no-restore --verbosity n -f net48