-
-
Notifications
You must be signed in to change notification settings - Fork 199
48 lines (43 loc) · 1017 Bytes
/
all.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
name: Test
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
test_lib:
runs-on: ubuntu-latest
strategy:
matrix:
go_version: [ '1.18', '1.19' ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go_version }}
- name: Run library go tests
run: cd lib; go test -v -race -cover -coverprofile=coverage.txt -covermode=atomic ./...
test_stores:
runs-on: ubuntu-latest
strategy:
matrix:
go_version: [ '1.18', '1.19' ]
store:
- bigcache
- freecache
- go_cache
- hazelcast
- memcache
- pegasus
- redis
- rediscluster
- ristretto
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go_version }}
- name: Run stores go tests
run: cd store/${{ matrix.store }}; go test -v -race ./...