-
Notifications
You must be signed in to change notification settings - Fork 46
34 lines (32 loc) · 916 Bytes
/
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
name: test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
services:
redis-rejson:
image: redislabs/rejson:1.0.8
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- uses: actions/checkout@v2
- name: set up go
uses: actions/setup-go@v4
with:
go-version: '>=1.17.0'
id: go
- run: "go vet ./..."
- name: go test
run: |
go test -race -v -covermode=atomic -coverprofile=profile.cov ./...
- name: send coverage to Coveralls
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
GO111MODULE=off go get -u github.com/mattn/goveralls
$(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github