mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-01 02:56:10 +00:00
CI - Add node dependencies (#23939)
* CI - Add node dependencies * Add support for Java and NPM versions as a variable in setup test environment --------- Co-authored-by: Matias Puerta <matias@getcollate.io>
This commit is contained in:
parent
c8d3412f31
commit
573dcd044b
@ -5,6 +5,12 @@ inputs:
|
|||||||
python-version:
|
python-version:
|
||||||
description: Python Version to install
|
description: Python Version to install
|
||||||
required: true
|
required: true
|
||||||
|
java-version:
|
||||||
|
description: Java Version to install
|
||||||
|
default: '21'
|
||||||
|
npm-version:
|
||||||
|
description: NPM Version to install
|
||||||
|
default: 'v22.x'
|
||||||
args:
|
args:
|
||||||
description: Arguments to pass to run_local_docker.sh
|
description: Arguments to pass to run_local_docker.sh
|
||||||
required: false
|
required: false
|
||||||
@ -26,13 +32,23 @@ runs:
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
# ---- Setup Java --------------------------------------------------------------
|
# ---- Setup Java --------------------------------------------------------------
|
||||||
- name: Setup JDK 21
|
- name: Setup JDK ${{ inputs.java-version }}
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
java-version: '21'
|
java-version: ${{ inputs.java-version }}
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# ---- Setup Node --------------------------------------------------------------
|
||||||
|
- name: Use Node.js ${{ inputs.npm-version }}
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: ${{ inputs.npm-version }}
|
||||||
|
|
||||||
|
- name: Install yarn
|
||||||
|
run: npm install -g yarn
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
# ---- Setup Python Test Environment -------------------------------------------
|
# ---- Setup Python Test Environment -------------------------------------------
|
||||||
- name: Setup Python ${{ inputs.python-version }}
|
- name: Setup Python ${{ inputs.python-version }}
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user