Run Chaos Engineering experiments #46
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
name: Run Chaos Engineering experiments | |
on: | |
workflow_dispatch: | |
# Run experiment recurrently to always have some example logs in demos | |
schedule: | |
- cron: "15 1 1,15 * *" | |
jobs: | |
run_experiments: | |
runs-on: ubuntu-latest | |
name: Run Experiments | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Steadybit CLI | |
run: npm install -g steadybit | |
shell: bash | |
- name: Add Mask | |
run: echo "::add-mask::${{ secrets.STEADYBIT_API_ACCESS_TOKEN }}" | |
- name: Add Steadybit Profile with a Team Token | |
run: steadybit config profile add --name "CI/CD" --token "${{ secrets.STEADYBIT_API_ACCESS_TOKEN }}" | |
shell: bash | |
- name: Run experiment via Experiment Key | |
run: steadybit experiment run -k GITHUB-16 | |
if: "!cancelled()" | |
- name: Run versioned experiments | |
run: steadybit experiment run -f experiments/ --recursive | |
if: "!cancelled()" |