Skip to content

Add script to generate nuget.config #209

Add script to generate nuget.config

Add script to generate nuget.config #209

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET build
on:
push:
pull_request:
types: [opened, reopened]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: spacetimedb-csharp-sdk
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x
- name: Checkout SpacetimeDB
uses: actions/checkout@v4
with:
repository: clockworklabs/SpacetimeDB
path: SpacetimeDB
- name: Setup SpacetimeDB packages
working-directory: spacetimedb-csharp-sdk
run: |
( cd ../SpacetimeDB/crates/bindings-csharp/BSATN.Runtime && dotnet pack )
./scripts/write-nuget-config.sh ../SpacetimeDB
- name: Restore dependencies
working-directory: spacetimedb-csharp-sdk
run: dotnet restore
- name: Build everything
working-directory: spacetimedb-csharp-sdk
run: dotnet build --no-restore -warnaserror
- name: Run tests
working-directory: spacetimedb-csharp-sdk
run: dotnet test --no-build
- name: Verify formatting
working-directory: spacetimedb-csharp-sdk
run: dotnet format --no-restore --verify-no-changes SpacetimeDB.ClientSDK.sln