-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This needn’t preclude using Evergreen for CI later.
- Loading branch information
Showing
5 changed files
with
79 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
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 | ||
- stable | ||
|
||
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: Test | ||
run: go test -v ./... | ||
env: | ||
MONGODB_DISTRO: ${{matrix.os.mongodb_distro}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
on: | ||
push: | ||
branches: | ||
- '*' | ||
tags-ignore: | ||
- '*' | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
# Optional: allow read access to pull request. Use with `only-new-issues` option. | ||
# pull-requests: read | ||
|
||
jobs: | ||
golangci: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: stable | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: v1.60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module github.com/10gen/migration-verifier | ||
|
||
go 1.18 | ||
go 1.19 | ||
|
||
require ( | ||
github.com/deckarep/golang-set/v2 v2.3.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters