-
Notifications
You must be signed in to change notification settings - Fork 9
37 lines (34 loc) · 1021 Bytes
/
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
name: .NET
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
env:
TELNYX_MOCK_VERSION: 0.8.13
TELNYX_MOCK_OPEN_API_URI: https://raw.githubusercontent.com/team-telnyx/openapi/master/openapi/spec3.json
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup dotnet 2.1.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.1.x'
- name: Setup .NET 3.1.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- name: Setup .NET 5.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: setup-telnyx-mock
run: source ./.github/scripts/before_install.sh
- name: Restore dependencies
run: dotnet restore ./src/Telnyx.net.sln
- name: Build
run: dotnet build ./src/Telnyx.net.sln /clp:ErrorsOnly
- name: Test
run: dotnet test ./src/TelnyxTests/TelnyxTests.csproj --configuration Release /clp:ErrorsOnly