-
Notifications
You must be signed in to change notification settings - Fork 114
48 lines (39 loc) · 1.59 KB
/
build-test.yml
File metadata and controls
48 lines (39 loc) · 1.59 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
47
48
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support documentation.
# This workflow will do a clean install of dotnet dependencies
name: Build and Test
on:
push:
branches: [ '**' ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build_test:
name: Build and Test on dotnet ${{ matrix.dotnet-version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
dotnet-version: ['7.0.x']
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- name: Set up dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Before Build
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Unit Test
run: |
dotnet test --no-build --verbosity normal src/IBM.Watson.Assistant.v1/Test/Unit
dotnet test --no-build --verbosity normal src/IBM.Watson.Assistant.v2/Test/Unit
dotnet test --no-build --verbosity normal src/IBM.Watson.Discovery.v1/Test/Unit
dotnet test --no-build --verbosity normal src/IBM.Watson.Discovery.v2/Test/Unit
dotnet test --no-build --verbosity normal src/IBM.Watson.LanguageTranslator.v3/Test/Unit
dotnet test --no-build --verbosity normal src/IBM.Watson.SpeechToText.v1/Test/Unit
dotnet test --no-build --verbosity normal src/IBM.Watson.TextToSpeech.v1/Test/Unit