Skip to content

Commit 8254d64

Browse files
committed
Switch Redis and Memcached setup in Windows CI workflow from winget to choco for service-based installation.
1 parent 3625452 commit 8254d64

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/continuous-integration.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,19 @@ jobs:
101101
- name: Setup Redis (Windows)
102102
if: runner.os == 'Windows'
103103
run: |
104-
winget install Redis.Redis --silent --accept-source-agreements
105-
# Redis を直接起動(サービス登録不要)
106-
Start-Process "redis-server" -WindowStyle Hidden
104+
choco install redis-64 -y
105+
# Redis をサービスとして起動
106+
redis-server --service-install --service-name Redis
107+
net start Redis
107108
Start-Sleep 5
108109
redis-cli ping
109110
110111
- name: Install Memcached (Windows)
111112
if: runner.os == 'Windows'
112113
run: |
113-
winget install Memcached.Memcached --silent --accept-source-agreements
114-
# Memcached を直接起動
115-
Start-Process "memcached" -ArgumentList "-m 64" -WindowStyle Hidden
114+
choco install memcached -y
115+
# Memcached をサービスとして起動
116+
net start memcached
116117
Start-Sleep 3
117118
netstat -an | findstr "11211"
118119

0 commit comments

Comments
 (0)