-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (38 loc) · 1.08 KB
/
go.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
name: Go
on:
workflow_dispatch:
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.20', '1.21' ]
name: Set up Go ${{ matrix.go }}
steps:
- uses: actions/checkout@v4
- name: Test
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
run: |
go work init
go work use ./kit
go work use ./std/gateways/fasthttp
go work use ./std/gateways/fastws
go work use ./std/gateways/silverhttp
go work use ./std/clusters/rediscluster
go work use ./contrib
go work sync
go test -v -race -cover -covermode=atomic -coverprofile=coverage.out -count=1 \
./kit/... \
./std/gateways/fasthttp/... \
./std/gateways/fastws/... \
./std/gateways/silverhttp/... \
./std/clusters/rediscluster/...
- name: Codecov KIT
uses: codecov/[email protected]
with:
files: ./coverage.out
verbose: true