Skip to content

Commit 1b59b1e

Browse files
committed
Update integration.yml
1 parent c2b4a9a commit 1b59b1e

File tree

1 file changed

+38
-119
lines changed

1 file changed

+38
-119
lines changed

.github/workflows/integration.yml

Lines changed: 38 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -15,126 +15,45 @@ concurrency:
1515
group: ${{ github.event.pull_request.number || github.ref }}-integration
1616
cancel-in-progress: true
1717

18-
jobs:
19-
enterprise-tests:
20-
name: Redis Enterprise
21-
runs-on: ubuntu-latest
22-
23-
strategy:
24-
fail-fast: false
25-
matrix:
26-
enterprise_version: ['7.4.2-54']
27-
env_file_mode: ['enterprise', 'enterprise_oss_cluster']
18+
env:
19+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
20+
REDIS_IMAGE: redis:latest
21+
REDIS_STACK_IMAGE: redis/redis-stack-server:latest
22+
CURRENT_REDIS_VERSION: '7.4.1'
2823

29-
steps:
30-
- uses: actions/checkout@v4
31-
32-
- name: Load dotnenv for CI
33-
uses: xom9ikk/dotenv@v2
34-
with:
35-
path: .github/workflows/modes
36-
mode: ${{ matrix.env_file_mode }}
37-
38-
- name: Clone ee docker code
39-
uses: actions/checkout@v4
40-
with:
41-
repository: redislabs/redis-ee-docker
42-
path: redis-ee-docker
43-
44-
- name: Start docker
45-
working-directory: redis-ee-docker
46-
env:
47-
IMAGE: redislabs/redis:${{ matrix.enterprise_version }}
48-
run: ./build.sh
49-
50-
- name: .NET Core 8
51-
uses: actions/setup-dotnet@v2
52-
with:
53-
dotnet-version: '8.0.x'
54-
55-
- name: Restore dependencies
56-
run: dotnet restore
57-
58-
- name: Build
59-
run: dotnet build --no-restore /p:ContinuousIntegrationBuild=true
60-
61-
- name: Test
62-
run: dotnet test -f net8.0 --no-build --verbosity detailed -p:BuildInParallel=false tests/Test.proj --logger GitHubActions
63-
64-
dotnet_6_cluster:
65-
name: .NET 6 on [redis-stack cluster]
66-
uses: ./.github/workflows/reusable.yml
67-
with:
68-
redis_stack_type: cluster
69-
clr_version: net6.0
70-
mode: oss_cluster
71-
dotnet_sdk_version: 6.0.0
72-
secrets: inherit
73-
74-
dotnet_6:
75-
name: .NET 6 on [redis-stack ${{matrix.redis-stack-type}}]
76-
uses: ./.github/workflows/reusable.yml
77-
strategy:
78-
fail-fast: false
79-
max-parallel: 5
80-
matrix:
81-
redis-stack-type: ['edge', '6.2.6', '7.2.0-RC3']
82-
with:
83-
redis_stack_type: ${{matrix.redis-stack-type}}
84-
clr_version: net6.0
85-
mode: standalone
86-
dotnet_sdk_version: 6.0.0
87-
secrets: inherit
88-
89-
dotnet_7_cluster:
90-
name: .NET 7 on [redis-stack cluster]
91-
uses: ./.github/workflows/reusable.yml
92-
with:
93-
redis_stack_type: cluster
94-
clr_version: net7.0
95-
mode: oss_cluster
96-
dotnet_sdk_version: 7.0.0
97-
secrets: inherit
98-
99-
dotnet_7:
100-
name: .NET 7 on [redis-stack ${{matrix.redis-stack-type}}]
101-
uses: ./.github/workflows/reusable.yml
102-
strategy:
103-
fail-fast: false
104-
max-parallel: 5
105-
matrix:
106-
redis-stack-type: ['edge', '6.2.6', '7.2.0-RC3']
107-
with:
108-
redis_stack_type: ${{matrix.redis-stack-type}}
109-
clr_version: net7.0
110-
mode: standalone
111-
dotnet_sdk_version: 7.0.0
112-
secrets: inherit
113-
114-
dotnet_8_cluster:
115-
name: .NET 8 on [redis-stack cluster]
116-
uses: ./.github/workflows/reusable.yml
117-
with:
118-
redis_stack_type: cluster
119-
clr_version: net8.0
120-
mode: oss_cluster
121-
dotnet_sdk_version: 8.0.0
122-
secrets: inherit
123-
124-
dotnet_8:
125-
name: .NET 8 on [redis-stack ${{matrix.redis-stack-type}}]
126-
uses: ./.github/workflows/reusable.yml
127-
strategy:
128-
fail-fast: false
129-
max-parallel: 5
130-
matrix:
131-
redis-stack-type: ['edge', '6.2.6', '7.2.0-RC3']
132-
with:
133-
redis_stack_type: ${{matrix.redis-stack-type}}
134-
clr_version: net8.0
135-
mode: standalone
136-
dotnet_sdk_version: 8.0.0
137-
secrets: inherit
24+
jobs:
25+
redis_version:
26+
runs-on: ubuntu-latest
27+
outputs:
28+
CURRENT: ${{ env.CURRENT_REDIS_VERSION }}
29+
steps:
30+
- name: Compute outputs
31+
run: |
32+
echo "CURRENT=${{ env.CURRENT_REDIS_VERSION }}" >> $GITHUB_OUTPUT
33+
34+
tests:
35+
runs-on: ubuntu-latest
36+
timeout-minutes: 60
37+
needs: redis_version
38+
strategy:
39+
max-parallel: 15
40+
fail-fast: false
41+
matrix:
42+
redis-version: [ '${{ needs.redis_version.outputs.CURRENT }}', '7.2.6', '6.2.16']
43+
dotnet-version: ['6.0', '7.0', '8.0']
44+
env:
45+
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
46+
name: Redis ${{ matrix.redis-version }}; .NET ${{ matrix.dotnet-version }};
47+
steps:
48+
- uses: actions/checkout@v4
49+
- name: Run tests
50+
uses: ./.github/actions/run-tests
51+
with:
52+
dotnet-version: ${{ matrix.dotnet-version }}
53+
redis-version: ${{ matrix.redis-version }}
54+
REDIS_CA_PEM: ${{ secrets.REDIS_CA_PEM }}
55+
REDIS_USER_CRT: ${{ secrets.REDIS_USER_CRT }}
56+
REDIS_USER_PRIVATE_KEY: ${{ secrets.REDIS_USER_PRIVATE_KEY }}
13857

13958
build_and_test_windows:
14059
name: Windows Test ${{matrix.redis-stack-version}}

0 commit comments

Comments
 (0)