File tree Expand file tree Collapse file tree 3 files changed +55
-45
lines changed Expand file tree Collapse file tree 3 files changed +55
-45
lines changed Original file line number Diff line number Diff line change 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 }}
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments