Giter Club home page Giter Club logo

run-action's Introduction


Chaos Toolkit - Chaos Engineering for All Engineers


A GitHub Action for running a Chaos Toolkit experiment using the Chaos Toolkit CLI.

You can use the Action as follows:

name: Execute a Chaos Toolkit Experiment

on:
  workflow_dispatch:

jobs:
  run-chaostoolkit-experiment:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - uses: chaostoolkit/run-action@v0
      with:
        experiment-file: "./experiment.json"
        working-dir: "subdir"
        install-dependencies: gcp;otel;slack

The Reliably Plan Action has properties which are passed to the underlying script. These are passed to the action using with.

Property Default Description
python-version "3.11" Run Chaos Toolkit using this version of Python
github-token "${{ github.token }}" GitHub token with enough permissions to commit to the repository
experiment-file "./experiment.json" Path to the experiment file relative to the working-dir
working-dir "." Base directory where to run the experiment from
verbose "false" Make Chaos Toolkit a bit more verbose
install-dependencies "" Automatically install Chaos Toolkit dependencies. Semi-column separated list from available groups: gcp, aws, k8s, otel and slack
dependencies-file "" File of extra dependencies to install more Python packages. For instance requirements.txt
upload-results-as-artifacts  "true" Upload the Chaos Toolkit journal and log files as job artifacts
result-artifact-name  "chaostoolkit-results" Set the name of the uploaded artifact

Various notes

  • The action automatically installs the Chaos Toolkit and will install any additional extensions listed in the install-dependencies input
  • Additional Python dependencies can be provided by creating a requirements.txt file into the working directory and setting the file name to dependencies-file input
  • If you create a bin directory either at the top of your repository or inside the working-directory, the action will automatically add it to the PATH

run-action's People

Contributors

lawouach avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.