-
-
Notifications
You must be signed in to change notification settings - Fork 525
47 lines (43 loc) · 961 Bytes
/
checks.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
name: checks
on: [
pull_request,
workflow_dispatch,
]
env:
TERM: xterm
REVIVE_FORCE_COLOR: 1
jobs:
test:
name: run-testcases
runs-on: ubuntu-latest
strategy:
matrix:
go_version: ['1.19']
# services:
# redis:
# image: redis:5.0-alpine
# ports:
# - 6379:6379
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go_version }}
- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: start services
run: docker compose up -d
- name: run testcases
run: make test2
- name: benchmark
run: make bench
- name: linter
run: make lint
- name: vet
run: make vet