Skip to content

Merge branch 'main' of https://github.com/tomlm/Linq.AI.OpenAI #23

Merge branch 'main' of https://github.com/tomlm/Linq.AI.OpenAI

Merge branch 'main' of https://github.com/tomlm/Linq.AI.OpenAI #23

name: BuildAndRunTests
on:
workflow_dispatch:
push:
branches:
- main
paths:
- source/**
pull_request:
branches: [ "main" ]
paths:
- source/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Linq.AI
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore source/Linq.AI.sln
- name: Build
run: dotnet build --no-restore source/Linq.AI.sln --property WarningLevel=0
- name: Test
run: |
dotnet user-secrets set OpenAIKey '${{ secrets.OPENAIKEY }}' -p source/Linq.AI.OpenAI.Tests/Linq.AI.OpenAI.Tests.csproj
dotnet test --no-build --verbosity normal source/Linq.AI.OpenAI.sln