Skip to content

Commit f20d64a

Browse files
committed
add workflow test for valkey integration
1 parent af6487d commit f20d64a

2 files changed

Lines changed: 40 additions & 1 deletion

File tree

.github/workflows/go.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,46 @@ jobs:
8686
${{ github.workspace }}/report.xml
8787
if: always()
8888

89+
test_valkey:
90+
runs-on: ubuntu-latest
91+
needs: build
92+
93+
steps:
94+
- uses: actions/checkout@v4
95+
96+
- name: Set up Go
97+
uses: actions/setup-go@v5
98+
with:
99+
go-version: 1.24
100+
check-latest: true
101+
cache: true
102+
103+
- name: Start Valkey (Docker)
104+
run: |
105+
docker run -d --name valkey -p 6379:6379 valkey/valkey:latest valkey-server --requirepass ValkeyPassw0rd
106+
107+
- name: Wait for Valkey readiness
108+
run: |
109+
for i in {1..60}; do
110+
if docker exec valkey valkey-cli -a RedisPassw0rd PING | grep -q PONG; then
111+
echo "Valkey is ready"; exit 0; fi;
112+
sleep 1;
113+
done
114+
echo "Valkey did not become ready in time";
115+
docker logs valkey || true
116+
exit 1
117+
118+
- name: Tests (valkey backend, integration)
119+
run: |
120+
go test -tags=valkey_integration -timeout 240s -race -count 1 -v github.com/cschleiden/go-workflows/backend/valkey 2>&1 | go tool go-junit-report -set-exit-code -iocopy -out "${{ github.workspace }}/report.xml"
121+
122+
- name: Test Summary
123+
uses: test-summary/action@v2
124+
with:
125+
paths: |
126+
${{ github.workspace }}/report.xml
127+
if: always()
128+
89129
test_sqlite:
90130
runs-on: ubuntu-latest
91131
needs: build

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ custom-gcl
1212

1313
# Docs build artifacts
1414
docs/build/
15-
.aider*

0 commit comments

Comments
 (0)