|
12 | 12 | - cron: "0 1 * * *"
|
13 | 13 |
|
14 | 14 | jobs:
|
15 |
| - build_and_Test: |
16 |
| - name: Test [redis-stack ${{matrix.redis-stack-version}}] |
17 |
| - runs-on: ubuntu-latest |
| 15 | + dotnet_6_cluster: |
| 16 | + name: .NET 6 on [redis-stack cluster] |
| 17 | + uses: ./.github/workflows/reusable.yml |
| 18 | + with: |
| 19 | + redis_stack_type: cluster |
| 20 | + dotnet_version: 6.0.x |
| 21 | + clr_version: net6.0 |
| 22 | + dotenv_file: .github/cluster.env |
| 23 | + secrets: inherit |
| 24 | + |
| 25 | + dotnet_6: |
| 26 | + name: .NET 6 on [redis-stack ${{matrix.redis-stack-type}}] |
| 27 | + uses: ./.github/workflows/reusable.yml |
18 | 28 | strategy:
|
19 | 29 | fail-fast: false
|
| 30 | + max-parallel: 5 |
20 | 31 | matrix:
|
21 |
| - redis-stack-version: ["6.2.6-v9", "7.2.0-RC3", "edge"] |
22 |
| - env: |
23 |
| - USER_NAME: ${{ secrets.USER_NAME }} |
24 |
| - PASSWORD: ${{ secrets.PASSWORD }} |
25 |
| - ENDPOINT: ${{ secrets.ENDPOINT }} |
26 |
| - REDIS_VERSION: ${{ matrix.redis-stack-version }} |
27 |
| - steps: |
28 |
| - - uses: actions/checkout@v3 |
29 |
| - - name: .NET Core 6 |
30 |
| - uses: actions/setup-dotnet@v2 |
31 |
| - with: |
32 |
| - dotnet-version: '6.0.x' |
33 |
| - - name: .NET Core 7 |
34 |
| - uses: actions/setup-dotnet@v2 |
35 |
| - with: |
36 |
| - dotnet-version: '7.0.x' |
37 |
| - - name: run redis-stack-server docker |
38 |
| - run: docker run -p 6379:6379 -d redis/redis-stack-server:${{matrix.redis-stack-version}} |
39 |
| - - name: Restore dependencies |
40 |
| - run: dotnet restore |
41 |
| - - name: Build |
42 |
| - run: dotnet build --no-restore /p:ContinuousIntegrationBuild=true |
43 |
| - - name: Test |
44 |
| - run: | |
45 |
| - echo "${{secrets.REDIS_CA_PEM}}" > tests/NRedisStack.Tests/bin/Debug/net6.0/redis_ca.pem |
46 |
| - echo "${{secrets.REDIS_USER_CRT}}" > tests/NRedisStack.Tests/bin/Debug/net6.0/redis_user.crt |
47 |
| - echo "${{secrets.REDIS_USER_PRIVATE_KEY}}" > tests/NRedisStack.Tests/bin/Debug/net6.0/redis_user_private.key |
48 |
| - ls -R |
49 |
| - dotnet test -f net6.0 --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover |
50 |
| - - name: Test |
51 |
| - run: | |
52 |
| - echo "${{secrets.REDIS_CA_PEM}}" > tests/NRedisStack.Tests/bin/Debug/net7.0/redis_ca.pem |
53 |
| - echo "${{secrets.REDIS_USER_CRT}}" > tests/NRedisStack.Tests/bin/Debug/net7.0/redis_user.crt |
54 |
| - echo "${{secrets.REDIS_USER_PRIVATE_KEY}}" > tests/NRedisStack.Tests/bin/Debug/net7.0/redis_user_private.key |
55 |
| - ls -R |
56 |
| - dotnet test -f net7.0 --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover |
57 |
| - - name: Codecov |
58 |
| - uses: codecov/codecov-action@v3 |
59 |
| - with: |
60 |
| - token: ${{secrets.CODECOV_TOKEN}} |
61 |
| - verbose: true |
62 |
| - - name: Build |
63 |
| - run: dotnet pack -c Release |
| 32 | + redis-stack-type: ['edge', '6.2.6', '7.2.0-RC3'] |
| 33 | + with: |
| 34 | + redis_stack_type: ${{matrix.redis-stack-type}} |
| 35 | + dotnet_version: 6.0.x |
| 36 | + clr_version: net6.0 |
| 37 | + dotenv_file: .github/standalone.env |
| 38 | + secrets: inherit |
| 39 | + |
| 40 | + dotnet_7_cluster: |
| 41 | + name: .NET 7 on [redis-stack cluster] |
| 42 | + uses: ./.github/workflows/reusable.yml |
| 43 | + with: |
| 44 | + redis_stack_type: cluster |
| 45 | + dotnet_version: 7.0.x |
| 46 | + clr_version: net7.0 |
| 47 | + dotenv_file: .github/cluster.env |
| 48 | + secrets: inherit |
| 49 | + |
| 50 | + dotnet_7: |
| 51 | + name: .NET 7 on [redis-stack ${{matrix.redis-stack-type}}] |
| 52 | + uses: ./.github/workflows/reusable.yml |
| 53 | + strategy: |
| 54 | + fail-fast: false |
| 55 | + max-parallel: 5 |
| 56 | + matrix: |
| 57 | + redis-stack-type: ['edge', '6.2.6', '7.2.0-RC3'] |
| 58 | + with: |
| 59 | + redis_stack_type: ${{matrix.redis-stack-type}} |
| 60 | + dotnet_version: 7.0.x |
| 61 | + clr_version: net7.0 |
| 62 | + dotenv_file: .github/standalone.env |
| 63 | + secrets: inherit |
64 | 64 |
|
65 | 65 | build_and_test_windows:
|
66 | 66 | name: Windows Test ${{matrix.redis-stack-version}}
|
67 | 67 | runs-on: windows-latest
|
| 68 | + strategy: |
| 69 | + fail-fast: false |
| 70 | + matrix: |
| 71 | + redis-stack-version: ['6.2.6-v9', '7.2.0-RC3'] |
68 | 72 | env:
|
69 |
| - redis_stack_version: 6.2.6-v7 |
| 73 | + redis_stack_version: ${{matrix.redis-stack-version}} |
70 | 74 | USER_NAME: ${{ secrets.USER_NAME }}
|
71 | 75 | PASSWORD: ${{ secrets.PASSWORD }}
|
72 | 76 | ENDPOINT: ${{ secrets.ENDPOINT }}
|
|
0 commit comments