-
Notifications
You must be signed in to change notification settings - Fork 9
60 lines (49 loc) · 1.33 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
test-redis:
runs-on: ubuntu-latest
name: Testing with Bun, redis@${{ matrix.redis-version }}
strategy:
matrix:
redis-version: [7-alpine, 6-alpine]
steps:
- name: Checkout repository
uses: actions/checkout@v4 # v3
- uses: oven-sh/setup-bun@v1
- name: Start Redis
uses: supercharge/[email protected]
with:
redis-version: ${{ matrix.redis-version }}
- run: bun install
- run: bun run tsc
- run: bun test
- run: bun test ./src/e2e-test.ts
test-dragonflydb:
runs-on: ubuntu-latest
name: Testing with Bun, dragonflydb@latest
services:
dragonflydb:
image: docker.dragonflydb.io/dragonflydb/dragonfly
env:
DFLY_cluster_mode: emulated
DFLY_lock_on_hashtags: true
ports:
- 6379:6379
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- run: bun install
- run: bun run tsc
- run: QUEUE_PREFIX={b} bun test
- run: QUEUE_PREFIX={b} bun test ./src/e2e-test.ts