forked from valkey-io/valkey-glide
-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (70 loc) · 2.16 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
74
75
76
77
78
79
80
81
82
83
84
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
concurrency:
group: C#-${{ github.head_ref || github.ref }}
cancel-in-progress: true
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/[email protected]
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