Skip to content

Commit e1f86ab

Browse files
authored
Merge pull request #889 from kerryjiang/ghactions
Tried to add github action build pipeline
2 parents 8d73209 + 8aeb046 commit e1f86ab

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/build.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
strategy:
14+
matrix:
15+
os:
16+
- ubuntu-latest
17+
- windows-latest
18+
- macos-latest
19+
runs-on: ${{matrix.os}}
20+
steps:
21+
- uses: actions/checkout@v1
22+
- name: Setup .NET Core
23+
uses: actions/setup-dotnet@v3
24+
with:
25+
dotnet-version: '8.0.x'
26+
- name: Set env
27+
run: |
28+
echo "DOTNET_CLI_TELEMETRY_OPTOUT=1" >> $GITHUB_ENV
29+
echo "DOTNET_hostBuilder:reloadConfigOnChange=false" >> $GITHUB_ENV
30+
- name: Clean
31+
run: |
32+
dotnet clean ./BotSharp.sln --configuration Release
33+
dotnet nuget locals all --clear
34+
- name: Build
35+
run: dotnet build ./BotSharp.sln -c Release
36+
- name: Test
37+
run: |
38+
cd ./tests/UnitTest
39+
dotnet test --logger "console;verbosity=detailed"
40+
cd ./tests/BotSharp.Plugin.SemanticKernel.UnitTests
41+
dotnet test --logger "console;verbosity=detailed"

0 commit comments

Comments
 (0)