Skip to content

Commit e63473f

Browse files
committed
Fix integration.yml
1 parent 1b59b1e commit e63473f

File tree

1 file changed

+40
-40
lines changed

1 file changed

+40
-40
lines changed

.github/workflows/integration.yml

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -55,43 +55,43 @@ jobs:
5555
REDIS_USER_CRT: ${{ secrets.REDIS_USER_CRT }}
5656
REDIS_USER_PRIVATE_KEY: ${{ secrets.REDIS_USER_PRIVATE_KEY }}
5757

58-
build_and_test_windows:
59-
name: Windows Test ${{matrix.redis-stack-version}}
60-
runs-on: windows-latest
61-
strategy:
62-
fail-fast: false
63-
matrix:
64-
redis-stack-version: ['6.2.6-v9', '7.2.0-RC3']
65-
env:
66-
redis_stack_version: ${{matrix.redis-stack-version}}
67-
USER_NAME: ${{ secrets.USER_NAME }}
68-
PASSWORD: ${{ secrets.PASSWORD }}
69-
ENDPOINT: ${{ secrets.ENDPOINT }}
70-
steps:
71-
- uses: actions/checkout@v3
72-
- uses: Vampire/setup-wsl@v2
73-
with:
74-
distribution: Ubuntu-22.04
75-
- name: Install Redis
76-
shell: wsl-bash {0}
77-
run: |
78-
sudo apt-get update
79-
sudo apt-get install curl -y && sudo apt-get install gpg -y && apt-get install lsb-release -y && apt-get install libgomp1 -y
80-
curl https://packages.redis.io/redis-stack/redis-stack-server-${{env.redis_stack_version}}.jammy.x86_64.tar.gz -o redis-stack.tar.gz
81-
tar xf redis-stack.tar.gz
82-
- name: Restore dependencies
83-
run: dotnet restore
84-
- name: Build
85-
run: dotnet build --no-restore /p:ContinuousIntegrationBuild=true
86-
- name: Save test certificates
87-
shell: wsl-bash {0}
88-
run: |
89-
echo "${{secrets.REDIS_CA_PEM}}" > tests/NRedisStack.Tests/bin/Debug/net481/redis_ca.pem
90-
echo "${{secrets.REDIS_USER_CRT}}" > tests/NRedisStack.Tests/bin/Debug/net481/redis_user.crt
91-
echo "${{secrets.REDIS_USER_PRIVATE_KEY}}" > tests/NRedisStack.Tests/bin/Debug/net481/redis_user_private.key
92-
ls -R
93-
- name: Test
94-
shell: cmd
95-
run: |
96-
START wsl ./redis-stack-server-${{env.redis_stack_version}}/bin/redis-stack-server &
97-
dotnet test -f net481 --no-build --verbosity detailed -p:BuildInParallel=false tests/Test.proj --logger GitHubActions
58+
build_and_test_windows:
59+
name: Windows Test ${{matrix.redis-stack-version}}
60+
runs-on: windows-latest
61+
strategy:
62+
fail-fast: false
63+
matrix:
64+
redis-stack-version: ['6.2.6-v9', '7.2.0-RC3']
65+
env:
66+
redis_stack_version: ${{matrix.redis-stack-version}}
67+
USER_NAME: ${{ secrets.USER_NAME }}
68+
PASSWORD: ${{ secrets.PASSWORD }}
69+
ENDPOINT: ${{ secrets.ENDPOINT }}
70+
steps:
71+
- uses: actions/checkout@v3
72+
- uses: Vampire/setup-wsl@v2
73+
with:
74+
distribution: Ubuntu-22.04
75+
- name: Install Redis
76+
shell: wsl-bash {0}
77+
run: |
78+
sudo apt-get update
79+
sudo apt-get install curl -y && sudo apt-get install gpg -y && apt-get install lsb-release -y && apt-get install libgomp1 -y
80+
curl https://packages.redis.io/redis-stack/redis-stack-server-${{env.redis_stack_version}}.jammy.x86_64.tar.gz -o redis-stack.tar.gz
81+
tar xf redis-stack.tar.gz
82+
- name: Restore dependencies
83+
run: dotnet restore
84+
- name: Build
85+
run: dotnet build --no-restore /p:ContinuousIntegrationBuild=true
86+
- name: Save test certificates
87+
shell: wsl-bash {0}
88+
run: |
89+
echo "${{secrets.REDIS_CA_PEM}}" > tests/NRedisStack.Tests/bin/Debug/net481/redis_ca.pem
90+
echo "${{secrets.REDIS_USER_CRT}}" > tests/NRedisStack.Tests/bin/Debug/net481/redis_user.crt
91+
echo "${{secrets.REDIS_USER_PRIVATE_KEY}}" > tests/NRedisStack.Tests/bin/Debug/net481/redis_user_private.key
92+
ls -R
93+
- name: Test
94+
shell: cmd
95+
run: |
96+
START wsl ./redis-stack-server-${{env.redis_stack_version}}/bin/redis-stack-server &
97+
dotnet test -f net481 --no-build --verbosity detailed -p:BuildInParallel=false tests/Test.proj --logger GitHubActions

0 commit comments

Comments
 (0)