-
Notifications
You must be signed in to change notification settings - Fork 428
54 lines (46 loc) · 1.13 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
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Go
on:
schedule:
# run every Sunday
- cron: '0 13 * * 0'
push:
branches:
- main
- release-0.1x
tags:
- v[0-9]+.[0-9]+.[0-9]+*
pull_request:
jobs:
build:
name: Build
strategy:
fail-fast: false
matrix:
image:
- mongo:4.2
- mongo:4.4
- mongo:5.0
- percona/percona-server-mongodb:4.2
- percona/percona-server-mongodb:4.4
- percona/percona-server-mongodb:5.0
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: ${{ github.workspace }}/go.mod
- name: Run tests with code coverage
run: |
TEST_MONGODB_IMAGE=${{ matrix.image }} make test-cluster
sleep 10
make test-cover
make test-cluster-clean
- name: Upload coverage results
uses: codecov/codecov-action@v3
with:
file: cover.out
flags: agent
env_vars: GO_VERSION,TEST_MONGODB_IMAGE
fail_ci_if_error: false