hn.today

Show HN: Write GitHub Actions in any language: Loopt

github.com15 points5 comments
Screenshot of Show HN: Write GitHub Actions in any language: Loopt

Loopt is a tool for authoring GitHub Actions workflows in programming languages rather than directly in YAML. It supports TypeScript, Python, Go, and Rust, with a plugin protocol for adding other languages. Authors keep workflow source files under .loopt/workflows; Loopt generates standard files in .github/workflows, and can also import existing workflow YAML into editable code. Its aim is to make workflows easier to write and maintain while preserving compatibility with GitHub Actions.

The command-line tool can initialize a project with a starter workflow tailored to detected project files, such as running npm tests, cargo test, go test, or pytest. Starters use a read-only token, pin the checkout action to a commit, avoid persisting credentials, and cancel superseded runs. Users can import workflows, regenerate YAML, and check that committed YAML matches its source; generation refuses to overwrite externally edited workflows unless forced. Loopt also runs correctness and security lint checks during generation, with optional ShellCheck analysis, and offers typed, commit-pinned action imports, secret inventory synchronization, and enforcement of pinned actions. Installation uses prebuilt binaries for macOS arm64 and Linux x86_64, though the chosen authoring language’s runtime or toolchain must be installed. The project is MIT-licensed and includes SDKs, documentation, and a Rust test suite.

Read on github.com5 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.