-
Notifications
You must be signed in to change notification settings - Fork 10
47 lines (37 loc) · 1.02 KB
/
all.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
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
jobs:
basics:
strategy:
fail-fast: false
matrix:
os:
- runsOn: macos-latest
mongodb_distro: mongodb-macos-arm64
- runsOn: ubuntu-latest
mongodb_distro: mongodb-linux-x86_64-ubuntu1804
go_version:
# This is hard-coded by design in order to catch inadvertent changes
# to the minimum-required Go version to build migration-verifier.
- 1.19
runs-on: ${{matrix.os.runsOn}}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Fetch Go ${{ matrix.go_version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go_version }}
- name: Build
run: go build main/migration_verifier.go
- name: Lint
run: python3 ./evergreen/go_lint.py
- name: Test
run: go test -v ./...
env:
MONGODB_DISTRO: ${{matrix.os.mongodb_distro}}