Skip to content

Commit a4f2674

Browse files
committed
Resurrect old unit-tests
Signed-off-by: Adam Fowler <[email protected]>
1 parent a64e188 commit a4f2674

File tree

3 files changed

+55
-45
lines changed

3 files changed

+55
-45
lines changed

.github/workflows/ci.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
workflow_dispatch:
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}-ci
10+
cancel-in-progress: true
11+
12+
env:
13+
VALKEY_HOSTNAME: valkey
14+
jobs:
15+
soundness:
16+
name: Soundness
17+
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
18+
with:
19+
unacceptable_language_check_word_list: "blacklist whitelist sane sanity insane insanity killing hang hung hanged hanging"
20+
21+
unit-tests:
22+
runs-on: ubuntu-latest
23+
timeout-minutes: 15
24+
strategy:
25+
matrix:
26+
image: ["swift:6.1", "swiftlang/swift:nightly-6.2-noble"]
27+
container:
28+
image: ${{ matrix.image }}
29+
services:
30+
valkey:
31+
image: valkey/valkey:8.0
32+
ports:
33+
- 6379:6379
34+
options: --entrypoint valkey-server
35+
steps:
36+
- name: Install jemalloc
37+
run: |
38+
apt-get update
39+
apt-get install -y libjemalloc-dev
40+
- name: Checkout
41+
uses: actions/checkout@v4
42+
- name: Test
43+
run: |
44+
swift test --enable-code-coverage
45+
- name: Convert coverage files
46+
run: |
47+
llvm-cov export -format="lcov" \
48+
.build/debug/valkey-swiftPackageTests.xctest \
49+
-ignore-filename-regex="\/Tests\/" \
50+
-instr-profile .build/debug/codecov/default.profdata > info.lcov
51+
- name: Upload to codecov.io
52+
uses: codecov/codecov-action@v4
53+
with:
54+
files: info.lcov
55+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/main.yml

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

.github/workflows/pull_request.yml

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

0 commit comments

Comments
 (0)