Skip to content

Commit

Permalink
Circle CI tests migration to GitHub Actions (#1204)
Browse files Browse the repository at this point in the history
* Remove deprecated MAINTAINER label
* Use kind-config.yaml in integration test
* Integration & stress tests on GitHub Actions

Signed-off-by: Wilson E. Husin <[email protected]>
  • Loading branch information
wilsonehusin authored Jan 7, 2021
1 parent f6e1914 commit 13c2ffc
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,19 @@ jobs:
VERBOSE: true
run: |
make local-test
stress-test-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: make stress-test
env:
VERBOSE: true
run: |
make stress
integration-test-on-kind:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: run tests
run: |
SONOBUOY_CLI=../../build/linux/amd64/sonobuoy ./scripts/run_integration_tests.sh
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.

FROM BASEIMAGE
MAINTAINER John Schnake "[email protected]"

CMD1

Expand Down
1 change: 0 additions & 1 deletion DockerfileWindows
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.

FROM BASEIMAGE
MAINTAINER John Schnake "[email protected]"

ADD BINARY /sonobuoy.exe
WORKDIR /
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ pre:
chmod +x ./manifest-tool
echo $(DOCKERHUB_TOKEN) | docker login --username sonobuoybot --password-stdin

# TODO: Make it easy to build single container for a specific arch
build_container:
$(DOCKER) build \
-t $(REGISTRY)/$(TARGET):$(IMAGE_VERSION) \
Expand Down
2 changes: 1 addition & 1 deletion scripts/run_integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ cluster="kind"
testImage="sonobuoy/testimage:v0.1"

if ! kind get clusters | grep -q "^$cluster$"; then
kind create cluster --name $cluster
kind create cluster --name $cluster --config $DIR/kind-config.yaml
# Although the cluster has been created, not all the pods in kube-system are created/available
sleep 20
fi
Expand Down

0 comments on commit 13c2ffc

Please sign in to comment.