Skip to content

Commit 7c55d29

Browse files
author
Nikolas De Giorgis
authored
Replace evg unit testing with github action (#302)
1 parent 52c47cd commit 7c55d29

File tree

5 files changed

+23
-43
lines changed

5 files changed

+23
-43
lines changed

.evergreen.yml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,6 @@ functions:
1919
params:
2020
directory: mongodb-kubernetes-operator
2121

22-
go_test:
23-
- command: subprocess.exec
24-
type: test
25-
params:
26-
include_expansions_in_env:
27-
- version_id
28-
working_dir: mongodb-kubernetes-operator
29-
binary: scripts/ci/run_unit_tests.sh
30-
3122
setup_operator_sdk:
3223
- command: subprocess.exec
3324
type: setup
@@ -227,13 +218,6 @@ tasks:
227218
- func: setup_virtualenv
228219
- func: black_formatting_test
229220

230-
- name: unit_tests
231-
commands:
232-
- func: clone
233-
- func: setup_virtualenv
234-
- func: go_test
235-
236-
237221
- name: mypy_linting
238222
commands:
239223
- func: clone
@@ -366,13 +350,6 @@ tasks:
366350

367351

368352
buildvariants:
369-
- name: go_unit_tests
370-
display_name: go_unit_tests
371-
run_on:
372-
- ubuntu1604-build
373-
tasks:
374-
- name: unit_tests
375-
376353
- name: e2e_tests
377354
display_name: e2e_tests
378355
run_on:

.github/workflows/go.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Go
2+
3+
on:
4+
pull_request:
5+
branches: [master]
6+
7+
jobs:
8+
9+
UnitTests:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Set up Go
15+
uses: actions/setup-go@v2
16+
with:
17+
go-version: 1.14
18+
19+
- name: Test pkg
20+
run: go test -v ./pkg/...
21+
22+
- name: Test mongotester
23+
run: go test -v ./test/e2e/util/mongotester/...

scripts/ci/run_unit_tests.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

scripts/dev/dockerfile_generator.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,6 @@ def e2e_params(files_to_add: List[str]) -> DockerParameters:
2525
}
2626

2727

28-
def unit_test_params(files_to_add: List[str]) -> DockerParameters:
29-
return {
30-
"base_image": f"golang:{GOLANG_TAG}",
31-
"files_to_add": files_to_add,
32-
}
33-
34-
3528
def python_formatting_params(files_to_add: List[str], script: str) -> DockerParameters:
3629
return {
3730
"base_image": "python:slim",
@@ -42,7 +35,6 @@ def python_formatting_params(files_to_add: List[str], script: str) -> DockerPara
4235

4336
def render(image_name: str, files_to_add: List[str], script_location: str) -> str:
4437
param_dict = {
45-
"unittest": unit_test_params(files_to_add),
4638
"e2e": e2e_params(files_to_add),
4739
"operator": operator_params(files_to_add),
4840
"python_formatting": python_formatting_params(files_to_add, script_location),

scripts/dev/templates/Dockerfile.unittest

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)