Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipeline #1

Merged
merged 9 commits into from
Nov 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/dotnet-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
BuildConfiguration: 'Release'

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
global-json-file: global.json

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --no-restore --configuration ${{env.BuildConfiguration}}

- name: Test
env:
AzureOpenAI__ChatDeploymentName: ${{ secrets.IntegrationTest__AzureOpenAI__ChatDeploymentName }}
AzureOpenAI__TextEmbeddingsDeploymentName: ${{ secrets.IntegrationTest__AzureOpenAI__TextEmbeddingsDeploymentName }}
AzureOpenAI__Endpoint: ${{ secrets.IntegrationTest__AzureOpenAI__Endpoint }}
AzureOpenAI__ApiKey: ${{ secrets.IntegrationTest__AzureOpenAI__ApiKey }}
run: dotnet test --no-build --collect:"XPlat Code Coverage" --results-directory ./coverage --verbosity normal --configuration ${{env.BuildConfiguration}}

- name: Code Coverage Report
uses: irongut/[email protected]
with:
filename: coverage/**/coverage.cobertura.xml
badge: true
fail_below_min: true
format: markdown
hide_branch_rate: false
hide_complexity: true
indicators: true
output: both
thresholds: '60 80'

- name: Write Coverage Report to Job Summary
run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY

- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
recreate: true
path: code-coverage-results.md
41 changes: 41 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<Project>
<PropertyGroup>
<Authors>LuisM000 - Luis Marcos Rivera</Authors>
<Company>LuisM000</Company>
</PropertyGroup>

<PropertyGroup>
<LangVersion>10</LangVersion>
<Nullable>enable</Nullable>
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
</PropertyGroup>

<PropertyGroup>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<DebugType>embedded</DebugType>
<DebugSymbols>true</DebugSymbols>
<Deterministic>true</Deterministic>
</PropertyGroup>

<PropertyGroup>
<VersionPrefix>0.1.0.0</VersionPrefix>
<VersionSuffix></VersionSuffix>
</PropertyGroup>

<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
</PropertyGroup>

<PropertyGroup>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>
</Project>
25 changes: 25 additions & 0 deletions SemanticAssertions.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SemanticAssertions", "src\SemanticAssertions\SemanticAssertions.csproj", "{66F2722F-E03F-41D6-886F-9F32DAB1F727}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SemanticAssertions.IntegrationTests", "src\SemanticAssertions.IntegrationTests\SemanticAssertions.IntegrationTests.csproj", "{090E7960-497C-4EC5-B7D1-CB24294E63E3}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution

{66F2722F-E03F-41D6-886F-9F32DAB1F727}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{66F2722F-E03F-41D6-886F-9F32DAB1F727}.Debug|Any CPU.Build.0 = Debug|Any CPU
{66F2722F-E03F-41D6-886F-9F32DAB1F727}.Release|Any CPU.ActiveCfg = Release|Any CPU
{66F2722F-E03F-41D6-886F-9F32DAB1F727}.Release|Any CPU.Build.0 = Release|Any CPU
{090E7960-497C-4EC5-B7D1-CB24294E63E3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{090E7960-497C-4EC5-B7D1-CB24294E63E3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{090E7960-497C-4EC5-B7D1-CB24294E63E3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{090E7960-497C-4EC5-B7D1-CB24294E63E3}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
EndGlobalSection
EndGlobal
4 changes: 2 additions & 2 deletions src/global.json → global.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"sdk": {
"version": "6.0.0",
"version": "6.0.405",
"rollForward": "latestMinor",
"allowPrerelease": false
}
}
}
1 change: 0 additions & 1 deletion src/.idea/.idea.SemanticAssertions/.idea/.name

This file was deleted.

8 changes: 0 additions & 8 deletions src/.idea/.idea.SemanticAssertions/.idea/indexLayout.xml

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions src/.idea/.idea.SemanticAssertions/.idea/vcs.xml

This file was deleted.

82 changes: 0 additions & 82 deletions src/.idea/.idea.SemanticAssertions/.idea/workspace.xml

This file was deleted.

27 changes: 0 additions & 27 deletions src/SemanticAssertions.sln

This file was deleted.