Skip to content

Commit 3643c1f

Browse files
committed
workflow
1 parent a2fc487 commit 3643c1f

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/all.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
on:
2+
push:
3+
branches:
4+
- '*'
5+
tags-ignore:
6+
- '*'
7+
pull_request:
8+
9+
jobs:
10+
basics:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os:
15+
- runsOn: macos-latest
16+
mongodb_distro: mongodb-macos-arm64
17+
18+
go_version:
19+
20+
# This is hard-coded by design in order to catch inadvertent changes
21+
# to the minimum-required Go version to build migration-verifier.
22+
- 1.19
23+
24+
runs-on: ${matrix.os.runsOn}
25+
26+
steps:
27+
- name: Check out repository
28+
uses: actions/checkout@v4
29+
30+
- name: Fetch Go ${{ matrix.go_version }}
31+
uses: actions/setup-go@v5
32+
with:
33+
go-version: ${{ matrix.go_version }}
34+
35+
- name: Build
36+
run: go build main/migration_verifier.go
37+
38+
- name: Lint
39+
run: python3 ./evergreen/go_lint.py
40+
41+
- name: Test
42+
run: go test -v ./...
43+
env:
44+
MONGODB_DISTRO: ${matrix.os.mongodb_distro}

0 commit comments

Comments
 (0)