Skip to content

nightly chaos testing #597

nightly chaos testing

nightly chaos testing #597

name: nightly chaos testing
on:
workflow_dispatch: {}
schedule:
# daily at 04:07
- cron: "07 04 * * *"
# Declare default permissions as read only.
permissions: read-all
jobs:
chaos-testing:
name: chaos testing
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3
- name: Install Task
uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v2.0.0
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run chaos-test task
run: task chaos-test
- name: Print cluster logs
if: always()
run: |
kubectl cluster-info dump -o yaml | tee kind-cluster-dump.txt
- name: Upload cluster dump
if: always()
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: kind-cluster-dump.txt
path: |
kind-cluster-dump.txt