GitHub Action
Setup Jolie
v0.2.2
Latest version
This action installs Jolie.
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).
Name | Required | Description | Default | Possible values |
---|---|---|---|---|
version | No | Version of Jolie that can be found here |
1.12.1 |
<String> |
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
Run jolie --version
Jolie 1.12.1 (C) 2006-2022 the Jolie developers