-
Notifications
You must be signed in to change notification settings - Fork 90
48 lines (42 loc) · 1002 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
test:
runs-on: ubuntu-latest
env:
TEST_CLICKHOUSE_DSN: http://localhost:8123/default
strategy:
fail-fast: false
matrix:
go: ["1.15", "1.16", "1.17", "1.18"]
steps:
- uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v2
- run: go test -v -coverprofile=profile.cov ./...
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov
flag-name: Go-${{ matrix.go }}
parallel: true
services:
clickhouse:
image: clickhouse/clickhouse-server:latest
ports:
- 8123:8123