-
Notifications
You must be signed in to change notification settings - Fork 10
55 lines (55 loc) · 1.46 KB
/
tests.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
49
50
51
52
53
54
55
name: tests
on:
push:
tags:
- v*
branches:
- master
- '**'
pull_request:
workflow_dispatch:
jobs:
integration:
strategy:
matrix:
go-version: [1.21.x, 1.22.x]
os: [ubuntu-latest]
concurrency:
group: integration-${{ github.ref }}-${{ matrix.os }}-${{ matrix.go-version }}
cancel-in-progress: true
services:
ydb:
image: cr.yandex/yc/yandex-docker-local-ydb:latest
ports:
- 2135:2135
volumes:
- /tmp/ydb_certs:/ydb_certs
env:
YDB_LOCAL_SURVIVE_RESTART: true
YDB_USE_IN_MEMORY_PDISKS: true
options: '-h localhost'
env:
OS: ${{ matrix.os }}
GO: ${{ matrix.go-version }}
YDB_ADDRESS: localhost:2135
YDB_PATH: /local
YDB_FOLDER: jaeger
YDB_TOKEN: ""
YDB_SECURE: 1
YDB_SSL_ROOT_CERTIFICATES_FILE: /tmp/ydb_certs/ca.pem
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test -race -coverpkg=./... -coverprofile=integration.txt -covermode=atomic ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
file: ./integration.txt
flags: integration,${{ matrix.os }},${{ matrix.go-version }}
name: integration