Added Strlen command in node (#993) #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[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 |