Skip to content

πŸƒβ€β™€οΈ The core cli of Actionforge

License

Notifications You must be signed in to change notification settings

actionforge/graph-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Actionforge Graph Runner

Graph Runner Logo

made-with-go License

The Graph Runner is a CLI tool and the core of the Actionforge project. It is designed for high-performance executions of action graphs.

Usage

Use the --help option to get more details about the command their options.

graph-runner --help

Execute a graph

The basic command to run an action graph is:

graph-runner ./example-graph.yml

Prerequisites

To run the Graph Runner, ensure you have Go installed. The required Go version is specified in the go.mod file. You can find the installation guidelines for Go here.

Before running any commands, first install the necessary dependencies:

go mod tidy

Compilation Instructions

Graph Runner offers two build options:

  • With GitHub Actions workflow support:

    go build -o graph-runner .
  • Without GitHub Actions workflow support:

    go build -tags=github_impl -o graph-runner .

Development Environment: VS Code DevContainer

This project includes a VS Code DevContainer configuration. It pre-configures VS Code with all required tools and extensions for this project. To use this feature, install the Dev Containers extension. You can find a tutorial on how to use DevContainers here.

Testing Framework

The Graph Runner comes with three types of tests:

  1. Unit Tests: For small individual functions and components, located in /unit_tests/.
  2. Integration Tests: For testing component interactions. These are *_test.go files outside the unit_tests directory.
  3. System Tests: For testing the entire CLI functionality, located in /system_tests/.

Tests can be run in VS Code using CodeLens1 or through the following shell commands:

Running Tests

  • Unit Tests:

    go test ./... -v -coverpkg=./... -cover -coverprofile cover.out --tags=unit_tests,github_impl
  • Integration Tests:

    go test ./... -v -coverpkg=./... -cover -coverprofile cover.out --tags=integration_tests,github_impl
  • System Tests:

    go test ./... -v -coverpkg=./... -cover -coverprofile cover.out --tags=integration_tests,system_tests,github_impl
  • All Tests:

    go test ./... -v -coverpkg=./... -cover -coverprofile cover.out --tags=unit_tests,integration_tests,system_tests,github_impl
    
    # With race detection:
    go test ./... -v -race -coverpkg=./... -cover -coverprofile cover.out --tags=unit_tests,integration_tests,system_tests,github_impl

Coverage Report

After running one or more tests, generate a coverage report in HTML format using the following command:

go tool cover -html cover.out -o cover.html

Licensing

This software is licensed under the Actionforge Community License that you can find here.

Commercial licenses (including sublicensing) are available by email. Get in touch.

Footnotes

  1. CodeLens provides inline commands in VS Code, positioned above test functions. ↩

About

πŸƒβ€β™€οΈ The core cli of Actionforge

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published