Skip to content

Commit

Permalink
Experiment
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
  • Loading branch information
Yury-Fridlyand committed Sep 17, 2024
1 parent 44174a3 commit 6b2d699
Showing 1 changed file with 17 additions and 36 deletions.
53 changes: 17 additions & 36 deletions .github/workflows/csharp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: C# tests

on:
push:
branches: ["main"]
paths:
- csharp/**
- glide-core/src/**
Expand Down Expand Up @@ -55,19 +54,19 @@ jobs:
matrix:
engine: ${{ fromJson(needs.load-engine-matrix.outputs.matrix) }}
dotnet:
# - '6.0'
- '6.0'
- '8.0'
host:
- {
OS: ubuntu,
RUNNER: ubuntu-latest,
TARGET: x86_64-unknown-linux-gnu
}
# - {
# OS: macos,
# RUNNER: macos-latest,
# TARGET: aarch64-apple-darwin
# }
- {
OS: macos,
RUNNER: macos-latest,
TARGET: aarch64-apple-darwin
}

runs-on: ${{ matrix.host.RUNNER }}

Expand All @@ -81,47 +80,29 @@ jobs:
with:
dotnet-version: ${{ matrix.dotnet }}

- name: Install shared software dependencies
uses: ./.github/workflows/install-shared-dependencies
with:
os: ${{ matrix.host.OS }}
target: ${{ matrix.host.TARGET }}
github-token: ${{ secrets.GITHUB_TOKEN }}
engine-version: ${{ matrix.engine.version }}

- 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 }} "-l:html;LogFileName=TestReport.html" --results-directory . -warnaserror

- uses: ./.github/workflows/test-benchmark
with:
language-flag: -csharp -dotnet-framework net${{ matrix.dotnet }}

- name: bee
run: tree csharp > tree.txt

- name: Upload test reports
if: always()
continue-on-error: true
uses: actions/upload-artifact@v4
with:
name: test-reports-dotnet-${{ matrix.dotnet }}-redis-${{ matrix.redis }}-${{ matrix.host.RUNNER }}
name: test-reports-dotnet-${{ matrix.dotnet }}-redis-${{ matrix.host.RUNNER }}
path: |
csharp/TestReport.html
benchmarks/results/*
utils/clusters/**
# TODO Add amazonlinux
tree csharp > tree.txt
lint-rust:
timeout-minutes: 10
second-part:
runs-on: ubuntu-latest
needs: run-tests
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
submodules: recursive
path: python/wheels

- uses: ./.github/workflows/lint-rust
with:
cargo-toml-folder: ./csharp/lib
- name: buu
run: tree python/wheels

0 comments on commit 6b2d699

Please sign in to comment.