Skip to content

Commit

Permalink
Enable package validation. (#270)
Browse files Browse the repository at this point in the history
* Enable package validation for `TileDB.CSharp`.

* Add a CI job that runs package validation.
  • Loading branch information
teo-tsirpanis authored Sep 6, 2023
1 parent 2b35b34 commit f4b7f6e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/tiledb-csharp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,28 @@ on:
workflow_call:

jobs:
Validate-Package:
runs-on: ubuntu-latest
steps:
# Checks out repository
- uses: actions/checkout@v3

- name: Remove existing .NET versions
shell: bash
run: |
rm -rf $DOTNET_ROOT
- name: Set up .NET SDK from global.json
uses: actions/setup-dotnet@v3

- name: Display .NET versions
run: dotnet --info

# Package validation runs as part of packing.
- name: Dotnet pack for TileDB.CSharp
run: |
dotnet pack -c Release sources/TileDB.CSharp
Run-Tests:
strategy:
fail-fast: false
Expand Down
2 changes: 2 additions & 0 deletions sources/TileDB.CSharp/TileDB.CSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
<Description>C# wrapper of the TileDB Embedded universal data engine.</Description>
<PackageReadmeFile>README.md</PackageReadmeFile>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<EnablePackageValidation>true</EnablePackageValidation>
<PackageValidationBaselineVersion>5.5.0</PackageValidationBaselineVersion>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit f4b7f6e

Please sign in to comment.