https://github.com/isometry/setup-go-tool
https://github.com/isometry/setup-go-tool
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/isometry/setup-go-tool
- Owner: isometry
- License: bsd-3-clause
- Created: 2024-11-01T14:04:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-01T20:00:33.000Z (over 1 year ago)
- Last Synced: 2025-07-27T12:03:13.005Z (9 months ago)
- Size: 253 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `setup-go-tool` action
The `isometry/setup-go-tool` action is designed to install and cache Go tools, making them available in your GitHub Actions workflows.
The action ensures that the specified Go module is installed and added to the system PATH, leveraging GitHub Runners' Tool Cache mechanism for efficiency.
## Features
* Installs specified Go tool optimised for the active GitHub Runner
* Fully exploits GitHub Runners' Tool Cache mechanism
## Inputs
### `module` input
**Required** The name of the Go module to install (example: `github.com/containers/skopeo/cmd/skopeo`)
### `version` input
**Required** The version of the Go module to install (default: `latest`; example: `v1.2.3`)
### `name` input
**Optional** The name to use for caching the module. Defaults to the last component in the module path, with stripping of a final `/cmd` component (example: `tool` for `github.com/owner/tool/cmd`)
## Outputs
### `version` output
The version of the tool actually installed.
## Example usage
```yaml
name: example
on:
workflow_dispatch:
jobs:
example:
runs-on: ubuntu-latest
steps:
- name: Setup tool
uses: isometry/setup-go-tool@v1
with:
module: github.com/containers/skopeo/cmd/skope
- name: Verify installation
run: tool --version