-
Notifications
You must be signed in to change notification settings - Fork 428
46 lines (39 loc) · 906 Bytes
/
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
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@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: ${{ github.workspace }}/go.mod
- name: Test
run: |
TEST_MONGODB_IMAGE=${{ matrix.image }} make test-cluster
sleep 10
make test-race
make test-cluster-clean