Skip to content

Commit

Permalink
Adding build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bc3tech committed Jun 11, 2024
1 parent 21275c4 commit 1730671
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build and Test

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build-and-test:
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
show-progress: false

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
with:
vs-version: 17.0

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'

- name: Run unit tests
run: dotnet test ./DocGpt.Test/DocGpt.Test.csproj --configuration Release

- name: Build Extension
run: msbuild ./DocGpt.sln --configuration Release

0 comments on commit 1730671

Please sign in to comment.