garnet

Форк
0
/
nightly.yml 
99 строк · 3.8 Кб
1
name: Garnet Nightly Tests
2
on:
3
  schedule:
4
    - cron:  '0 7 * * *' # Runs at 07:00 UTC, which is 11:00 PM PST
5
  workflow_dispatch:
6
  
7
env:
8
  DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
9
  DOTNET_NOLOGO: true
10

11
jobs:
12
  build-test-garnet:
13
    name: Garnet
14
    runs-on: ${{ matrix.os }}
15
    strategy:
16
      fail-fast: false
17
      matrix:
18
        os: [ ubuntu-22.04, ubuntu-20.04, windows-2022, windows-2019 ]
19
        framework: [ 'net6.0', 'net8.0' ]
20
        configuration: [ 'Debug', 'Release' ]
21
        test: [ 'Garnet.test', 'Garnet.test.cluster' ]
22
    steps:
23
      - name: Check out code
24
        uses: actions/checkout@v4
25
      - name: Setup .NET
26
        uses: actions/setup-dotnet@v4
27
        with:
28
          dotnet-version: 8.0.x
29
      - name: Install dependencies
30
        run: dotnet restore
31
      - name: Check style format
32
        run: dotnet format --verify-no-changes --verbosity diagnostic
33
      - name: Build Garnet
34
        run: dotnet build --configuration ${{ matrix.configuration }}
35
      - name: Run tests ${{ matrix.test }}
36
        run: dotnet test test/${{ matrix.test }} -f ${{ matrix.framework }} --logger "console;verbosity=detailed" --logger trx --results-directory "GarnetTestResults-${{ matrix.os }}-${{ matrix.framework }}-${{ matrix.configuration }}-${{ matrix.test }}"
37
        timeout-minutes: 30 
38
      - name: Upload test results
39
        uses: actions/upload-artifact@v4
40
        with:
41
          name: dotnet-garnet-results-${{ matrix.os }}-${{ matrix.framework }}-${{ matrix.configuration }}-${{ matrix.test }}
42
          path: GarnetTestResults-${{ matrix.os }}-${{ matrix.framework }}-${{ matrix.configuration }}-${{ matrix.test }}
43
        if: ${{ always() }}
44

45
  # Job to build and test Tsavorite code
46
  build-test-tsavorite:        
47
    name: Tsavorite
48
    runs-on: ${{ matrix.os }}
49
    strategy:
50
      fail-fast: false
51
      matrix:
52
        os: [ ubuntu-22.04, ubuntu-20.04, windows-2022, windows-2019 ]
53
        framework: [ 'net6.0', 'net8.0' ]
54
        configuration: [ 'Debug', 'Release' ]
55
    steps:
56
      - name: Check out code
57
        uses: actions/checkout@v4
58
      - name: Set environment variable for Linux
59
        run: echo "RunAzureTests=yes" >> $GITHUB_ENV
60
        if: ${{ matrix.os == 'ubuntu-latest' }}
61
      - name: Set environment variable for Windows
62
        run: echo ("RunAzureTests=yes") >> $env:GITHUB_ENV
63
        if: ${{ matrix.os == 'windows-latest' }}
64
      - name: Setup .NET
65
        uses: actions/setup-dotnet@v4
66
        with:
67
          dotnet-version: 8.0.x
68
      - name: Setup Node.js for Azurite
69
        uses: actions/setup-node@v4
70
        with:
71
          node-version: '20'
72
      - name: Install and Run Azurite
73
        shell: bash
74
        run: |
75
          npm install -g azurite
76
          azurite &
77
      - name: Install dependencies
78
        run: dotnet restore
79
      - name: Format
80
        run: dotnet format --verify-no-changes --verbosity diagnostic
81
      - name: Build Tsavorite
82
        run: dotnet build libs/storage/Tsavorite/cs/test/Tsavorite.test.csproj --configuration ${{ matrix.configuration }}
83
      - name: Run Tsavorite tests
84
        run: dotnet test libs/storage/Tsavorite/cs/test/Tsavorite.test.csproj -f ${{ matrix.framework }} --logger "console;verbosity=detailed" --logger trx --results-directory "TsavoriteTestResults-${{ matrix.os }}-${{ matrix.framework }}-${{ matrix.configuration }}"
85
        timeout-minutes: 30 
86
      - name: Upload test results
87
        uses: actions/upload-artifact@v4
88
        with:
89
          name: dotnet-tsavorite-results-${{ matrix.os }}-${{ matrix.framework }}-${{ matrix.configuration }}
90
          path: TsavoriteTestResults-${{ matrix.os }}-${{ matrix.framework }}-${{ matrix.configuration }}
91
        if: ${{ always() }}
92

93
  pipeline-success:
94
    name: Garnet Nightly (Complete)
95
    runs-on: ubuntu-latest
96
    needs: [ build-test-garnet,  build-test-tsavorite ]
97
    steps:
98
    - run: echo Done!
99
    if: ${{ !(failure() || cancelled()) }}
100
    
101

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.