Skip to content

Commit

Permalink
Chore(update): Update Github Chaos Actions (litmuschaos#20)
Browse files Browse the repository at this point in the history
* Chore(update): Update Github Chaos Actions

Signed-off-by: uditgaurav <[email protected]>

* Update test.yml
  • Loading branch information
uditgaurav authored May 27, 2021
1 parent d4886fa commit c3be547
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ jobs:
kind get kubeconfig --internal >$HOME/.kube/config
kubectl get nodes
- name: Load image on the nodes of the cluster
run: |
kind load docker-image --name=kind litmuschaos/go-runner:ci
- name: Deploy a sample application for chaos injection
run: |
kubectl apply -f https://raw.githubusercontent.com/litmuschaos/chaos-ci-lib/master/app/nginx.yml
Expand Down Expand Up @@ -66,7 +62,7 @@ jobs:
EXPERIMENT_IMAGE: litmuschaos/go-runner
EXPERIMENT_IMAGE_TAG: ci
JOB_CLEANUP_POLICY: delete


- name: Running node-memory-hog chaos experiment
uses: litmuschaos/github-chaos-actions@master
Expand All @@ -90,7 +86,7 @@ jobs:
- name: Running pod-memory-hog chaos experiment
uses: litmuschaos/github-chaos-actions@master
env:
EXPERIMENT_NAME: pod-cpu-hog
EXPERIMENT_NAME: pod-memory-hog
EXPERIMENT_IMAGE: litmuschaos/go-runner
EXPERIMENT_IMAGE_TAG: ci
JOB_CLEANUP_POLICY: delete
Expand Down
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ fi

if [ "$EXPERIMENT_NAME" == "all" ]; then
## Run all BDDs
cd tests
cd experiments
ginkgo -nodes=${PARALLEL_EXECUTION}
cd ..

elif [ ! -z "$EXPERIMENT_NAME" ]; then
## Run the selected chaos experiment
go test tests/${EXPERIMENT_NAME}_test.go -v -count=1 -timeout=${TEST_TIMEOUT}s
go test experiments/${EXPERIMENT_NAME}_test.go -v -count=1 -timeout=${TEST_TIMEOUT}s
fi

##litmus cleanup
Expand Down

0 comments on commit c3be547

Please sign in to comment.