Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/applejag/setup-risor

Github Action for installing Risor
https://github.com/applejag/setup-risor

action actions github-action github-actions risor

Last synced: 13 days ago
JSON representation

Github Action for installing Risor

Awesome Lists containing this project

README

        

# setup-risor

This action installs [Risor](https://risor.io/) inside a GitHub Action workflow.

## Usage

See [action.yml](./action.yml)

### Basic

```yaml
steps:
- uses: applejag/setup-risor@v0

- shell: risor {0}
run: |
array := ["gophers", "are", "burrowing", "rodents"]

sentence := array | strings.join(" ") | strings.to_upper

print(sentence)
```

## Caching

This action caches the Risor binary by default.
It uses [@actions/tool-cache](https://github.com/actions/toolkit/tree/main/packages/tool-cache),
which stores cache differently than the [actions/cache](https://github.com/actions/cache)
action.

Tool-cache is stored on a per-host basis, instead of on a per-repo basis.
This means that you might get a lot of cache-misses, but that's because your
jobs are being run on different action runner hosts.
It also means that the cache won't be visible in the "Caches" view inside
your repository's "Actions" tab.

It also means that if you're using self-hosted runners, then you need to make
sure you [configure them to make use of hosted tool cache](https://docs.github.com/en/[email protected]/admin/github-actions/managing-access-to-actions-from-githubcom/setting-up-the-tool-cache-on-self-hosted-runners-without-internet-access#about-the-included-setup-actions-and-the-runner-tool-cache)

## License

This repository is licensed under the MIT license.

It is heavily inspired by the [helmfile/helmfile-action](https://github.com/helmfile/helmfile-action)
and [azure/setup-helm](https://github.com/Azure/setup-helm) actions.