From 2affbb86d3efafbcea55a3c49084afaa1fefb0e2 Mon Sep 17 00:00:00 2001 From: Giacomo Leidi Date: Tue, 27 Feb 2024 15:46:27 +0100 Subject: [PATCH] Release v0.1.1. --- action.yml | 44 +++++++++++++++++++------------------------- 1 file changed, 19 insertions(+), 25 deletions(-) diff --git a/action.yml b/action.yml index 52f3bf0..003181d 100644 --- a/action.yml +++ b/action.yml @@ -1,35 +1,25 @@ name: 'Bonfire extension QA' -author: 'Giacomo Leidi' +author: 'Bonfire Networks' description: 'Uses Bonfire extensions standard commands to build and test an extension' -# inputs: -# name: -# description: 'The name of the output image you would like to push' -# required: true -# username: -# description: 'The login username for the registry' -# required: true -# password: -# description: 'The login password for the registry' -# required: true -# image: -# description: 'The input image path' -# required: true -# registry: -# description: 'Use registry for pushing to a custom registry' -# required: false -# workdir: -# description: 'Use workdir when you would like to change the directory for building' -# required: false +inputs: + elixir-version: + description: 'The version of Elixir to be used for building and testing' + required: false + default: '26.0' + otp-version: + description: 'The version of OTP to be used for building and testing' + required: false + default: '1.15.2' runs: using: "composite" steps: - uses: actions/checkout@v4 - name: Set up Elixir - uses: erlef/setup-beam@61e01a43a562a89bfc54c7f9a378ff67b03e4a21 # v1.16.0 + uses: erlef/setup-beam@v1 with: - elixir-version: '1.15.2' # [Required] Define the Elixir version - otp-version: '26.0' # [Required] Define the Erlang/OTP version + elixir-version: ${{ inputs.elixir-version }} # [Required] Define the Elixir version + otp-version: ${{ inputs.otp-version }} # [Required] Define the Erlang/OTP version - name: Restore dependencies cache uses: actions/cache@v3 @@ -42,10 +32,14 @@ runs: run: sudo snap install --edge just --classic shell: bash - - name: Random Number Generator + - name: Get dependencies run: just deps-get shell: bash - - name: Set GitHub Path + - name: Compile package + run: just compile + shell: bash + + - name: Run tests run: just test shell: bash