Skip to content

Commit 6026e68

Browse files
authored
Connection (#3)
* Restructure to allow for connections to be passed around * Add CI * Add RESP3 upgrade * RedisClientConnection -> RedisConnection * Update CI, fix generated files * Ensure requestContinuation is finished on error * Give unix time test more leeway
1 parent 64d0d01 commit 6026e68

29 files changed

+458
-1226
lines changed

.github/workflows/ci.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "**.swift"
9+
- "**.yml"
10+
pull_request:
11+
workflow_dispatch:
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}-ci
14+
cancel-in-progress: true
15+
16+
env:
17+
REDIS_HOSTNAME: redis
18+
jobs:
19+
linux:
20+
runs-on: ubuntu-latest
21+
timeout-minutes: 15
22+
strategy:
23+
matrix:
24+
image: ["swift:6.0", "swiftlang/swift:nightly-6.1-jammy"]
25+
container:
26+
image: ${{ matrix.image }}
27+
services:
28+
redis:
29+
image: redis
30+
ports:
31+
- 6379:6379
32+
options: --entrypoint redis-server
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v4
36+
- name: Test
37+
run: |
38+
swift test --enable-code-coverage
39+
- name: Convert coverage files
40+
run: |
41+
llvm-cov export -format="lcov" \
42+
.build/debug/swift-redisPackageTests.xctest \
43+
-ignore-filename-regex="\/Tests\/" \
44+
-instr-profile .build/debug/codecov/default.profdata > info.lcov
45+
- name: Upload to codecov.io
46+
uses: codecov/codecov-action@v4
47+
with:
48+
files: info.lcov
49+
token: ${{ secrets.CODECOV_TOKEN }}

Sources/Redis/Client/ClientChannel.swift

Lines changed: 0 additions & 36 deletions
This file was deleted.

Sources/Redis/Client/ClientConnection.swift

Lines changed: 0 additions & 181 deletions
This file was deleted.

0 commit comments

Comments
 (0)