Skip to content

Commit 1e95388

Browse files
committed
integration environment change
1 parent a39b818 commit 1e95388

File tree

1 file changed

+22
-12
lines changed

1 file changed

+22
-12
lines changed

.github/workflows/integration.yml

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,39 +12,49 @@ on:
1212
- cron: "0 1 * * *"
1313

1414
env:
15-
redis_stack_version: 6.2.6-v6
15+
redis_stack_version: 6.2.6-v7
1616

1717
jobs:
18+
1819
build_and_Test:
20+
services:
21+
redis:
22+
image: redis/redis-stack-server:edge
23+
ports:
24+
- 6379:6379
1925
name: Build and test
2026
runs-on: ubuntu-latest
27+
strategy:
28+
max-parallel: 5
29+
fail-fast: false
30+
matrix:
31+
dotnet: ['6.0.x', '7.0.x']
2132
steps:
2233
- uses: actions/checkout@v3
23-
- name: .NET Core 6
24-
uses: actions/setup-dotnet@v2
34+
- uses: actions/checkout@v3
2535
with:
26-
dotnet-version: '6.0.x'
27-
- name: .NET Core 7
36+
repository: chayim/redis-environments
37+
path: redis-environments
38+
- name: start dockers
39+
run: docker-compose up -d redis-stack-unstable
40+
- name: .NET Core ${{matrix.dotnet}}
2841
uses: actions/setup-dotnet@v2
2942
with:
30-
dotnet-version: '7.0.x'
31-
- name: run redis-stack-server docker
32-
run: docker run -p 6379:6379 -d redis/redis-stack-server:edge
43+
dotnet-version: ${{matrix.dotnet}}
3344
- name: Restore dependencies
3445
run: dotnet restore
3546
- name: Build
3647
run: dotnet build --no-restore /p:ContinuousIntegrationBuild=true
3748
- name: Test
38-
run: dotnet test -f net6.0 --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
39-
- name: Test
40-
run: dotnet test -f net7.0 --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
49+
run: dotnet test --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
4150
- name: Codecov
4251
uses: codecov/codecov-action@v3
4352
with:
4453
token: ${{secrets.CODECOV_TOKEN}}
4554
verbose: true
4655
- name: Build
4756
run: dotnet pack -c Release
57+
4858
build_and_test_windows:
4959
name: Build and Test on Windows
5060
runs-on: windows-latest
@@ -59,7 +69,7 @@ jobs:
5969
sudo apt-get update
6070
sudo apt-get install curl -y && sudo apt-get install gpg -y && apt-get install lsb-release -y && apt-get install libgomp1 -y
6171
curl https://packages.redis.io/redis-stack/redis-stack-server-${{env.redis_stack_version}}.jammy.x86_64.tar.gz -o redis-stack.tar.gz
62-
tar xf redis-stack.tar.gz
72+
tar xf redis-stack.tar.gz
6373
- name: Restore dependencies
6474
run: dotnet restore
6575
- name: Build

0 commit comments

Comments
 (0)