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

https://github.com/fabasoad/setup-wren-action

This GitHub action installs wren scripting language interpreter.
https://github.com/fabasoad/setup-wren-action

cli github-action github-actions interpreter programming-language scripting-language wren wren-cli wren-language

Last synced: 2 months ago
JSON representation

This GitHub action installs wren scripting language interpreter.

Awesome Lists containing this project

README

        

# Setup Wren CLI

[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://stand-with-ukraine.pp.ua)
![GitHub release](https://img.shields.io/github/v/release/fabasoad/setup-wren-action?include_prereleases)
![functional-tests](https://github.com/fabasoad/setup-wren-action/actions/workflows/functional-tests.yml/badge.svg)
![security](https://github.com/fabasoad/setup-wren-action/actions/workflows/security.yml/badge.svg)
![linting](https://github.com/fabasoad/setup-wren-action/actions/workflows/linting.yml/badge.svg)

This action sets up a [Wren CLI](https://wren.io/cli/).

## Supported OS

| OS | |
|---------|--------------------|
| Windows | :white_check_mark: |
| Linux | :white_check_mark: |
| macOS | :white_check_mark: |

## Prerequisites

None.

## Inputs

```yaml
- uses: fabasoad/setup-wren-action@v1
with:
# (Optional) wren CLI version. Defaults to the latest version.
version: "0.4.0"
# (Optional) If "false" skips installation if wren CLI is already installed.
# If "true" installs wren CLI in any case. Defaults to "false".
force: "false"
# (Optional) GitHub token that is used to send requests to GitHub API such
# as downloading asset. Defaults to the token provided by GitHub Actions
# environment.
github-token: "${{ github.token }}"
```

## Outputs

| Name | Description | Example |
|-----------|---------------------------------------|---------|
| installed | Whether wren CLI was installed or not | `true` |

## Example usage

Let's try to run `hello-world.wren` file with the following content:

```java
System.print("Hello World!")
```

### Workflow configuration

```yaml
name: Setup Wren CLI

on: push

jobs:
setup:
name: Setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: fabasoad/setup-wren-action@v1
- name: Run script
run: wren_cli ./hello-world.wren
```

### Result

```shell
Run wren_cli ./hello-world.wren
Hello World!
```