forked from valkey-io/valkey-glide
-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (61 loc) · 1.77 KB
/
csharp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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
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/[email protected]
with:
version: "25.1"
- name: Set up dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Start redis server
run: redis-server &
- name: Test
working-directory: ./csharp
run: dotnet test --framework net6.0 /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