Skip to content

FFI connection without protobuf + C# #92

FFI connection without protobuf + C#

FFI connection without protobuf + C# #92

Workflow file for this run

name: C# tests
on:
push:
branches: ["main"]
paths:
- csharp/**
- glide-core/**
- submodules/**
- .github/workflows/csharp.yml
pull_request:
paths:
- csharp/**
- glide-core/src/**
- submodules/**
- .github/workflows/csharp.yml
permissions:
contents: read
jobs:
run-tests:
timeout-minutes: 15
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
redis:
- 6.2.14
- 7.2.3
dotnet:
- 6.0
- 8.0
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install redis
uses: ./.github/workflows/install-redis
with:
redis-version: ${{ matrix.redis }}
- name: Install protoc (protobuf)
uses: arduino/setup-protoc@v3
with:
version: "25.1"
- name: Set up dotnet ${{ matrix.dotnet }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Start redis server
run: redis-server &
- name: Format
working-directory: ./csharp
run: dotnet format --verify-no-changes --verbosity diagnostic
- name: Test dotnet ${{ matrix.dotnet }}
working-directory: ./csharp
run: dotnet test --framework net${{ matrix.dotnet }} /warnaserror
- uses: ./.github/workflows/test-benchmark
with:
language-flag: -csharp
lint-rust:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: ./.github/workflows/lint-rust
with:
cargo-toml-folder: ./csharp/lib