actionslib

module
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2026 License: MIT

README

proto-go

Shared Go code between Gitea and the Gitea Actions runner.

Layout

  • ping/v1, runner/v1: generated protobuf/connect code of the runner API.
  • pkg/protocol: wire level constants of the runner API, such as the authentication headers.
  • pkg/model: the workflow file model (workflows, jobs, steps, contexts) and its YAML parsing.
  • pkg/exprparser: the evaluator of ${{ }} expressions used in workflows.
  • pkg/expreval: the layer above pkg/exprparser that finds the ${{ }} expressions in a value and evaluates them: sub-expression splitting, interpolation, condition (if:) truthiness and YAML node evaluation.

pkg/model, pkg/exprparser and pkg/expreval are derived from nektos/act and were previously maintained in the runner repository as act/model, act/exprparser and act/runner, with a copy of the evaluation layer in Gitea as modules/actions/jobparser.

Development

make help    # list the available targets
make build   # build all packages
make test    # run the tests
make checks  # formatting, go.mod tidiness, vet and golangci-lint
make fmt     # format the code

CI runs the same targets on pull requests, pushes to main and v* tags (see .gitea/workflows).

Directories

Path Synopsis
ping
v1
pkg
expreval
Package expreval evaluates the `${{ }}` expressions of a workflow file against an exprparser interpreter.
Package expreval evaluates the `${{ }}` expressions of a workflow file against an exprparser interpreter.
exprparser
Package exprparser evaluates the source of one `${{ }}` expression against the contexts and the functions that GitHub Actions defines.
Package exprparser evaluates the source of one `${{ }}` expression against the contexts and the functions that GitHub Actions defines.
model
Package model holds the workflow file model, its YAML parsing and the contexts that an expression reads.
Package model holds the workflow file model, its YAML parsing and the contexts that an expression reads.
protocol
Package protocol holds the wire level constants shared by the Gitea Actions server and the runner.
Package protocol holds the wire level constants shared by the Gitea Actions server and the runner.
runner
v1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL