Skip to content

fabasoad/setup-jolie-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Setup Jolie action

Stand With Ukraine Release functional-tests security linting

This action installs Jolie.

Prerequisites

The following tools have to be installed for successful work of this GitHub action: bash, maven and java (for the correct version of java please follow the instructions here).

Inputs

Name Required Description Default Possible values
version No Version of Jolie that can be found here 1.12.1 <String>

Example usage

Workflow configuration

Based on the Prerequisites section we need to be sure that all necessary tools have been installed prior of running this action.

For this we need to set up java in advance in case we use clean environment such as ubuntu-latest:

name: Run on Ubuntu

on: push

jobs:
  setup:
    name: jolie
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-java@v4
        with:
          java-version: 11
          distribution: zulu
      - uses: fabasoad/setup-jolie-action@v0
        with:
          version: "1.12.1"
      - name: Print version
        run: jolie --version

Or we can use ready to go container with the pre-installed java there:

name: Run on Alpine

on: push

jobs:
  setup:
    name: jolie
    runs-on: ubuntu-latest
    container:
      image: adoptopenjdk/openjdk11:alpine-nightly-slim
    steps:
      - uses: actions/checkout@v4
      - name: Install tools
        run: apk add --update maven
      - uses: fabasoad/setup-jolie-action@v0
        with:
          version: "1.12.1"
      - name: Print version
        run: jolie --version

Result

Run jolie --version
Jolie 1.12.1  (C) 2006-2022 the Jolie developers