Maven
All checks were successful
Build rosetta-sdu / build (push) Successful in 1m39s

This commit is contained in:
RoyceDa
2026-02-26 19:35:02 +02:00
parent a3ffb0f1b2
commit 57f4431c0c

View File

@@ -11,7 +11,9 @@ jobs:
steps: steps:
- name: Install Node.js - name: Install Node.js
run: | run: |
if command -v apt-get &> /dev/null; then if command -v node &> /dev/null; then
echo "Node.js is already installed"
elif command -v apt-get &> /dev/null; then
sudo apt-get update && sudo apt-get install -y nodejs npm sudo apt-get update && sudo apt-get install -y nodejs npm
elif command -v brew &> /dev/null; then elif command -v brew &> /dev/null; then
brew install node brew install node
@@ -29,6 +31,18 @@ jobs:
distribution: 'temurin' distribution: 'temurin'
cache: maven cache: maven
- name: Install Maven
run: |
if command -v mvn &> /dev/null; then
echo "Maven is already installed"
elif command -v apt-get &> /dev/null; then
sudo apt-get update && sudo apt-get install -y maven
elif command -v brew &> /dev/null; then
brew install maven
elif command -v apk &> /dev/null; then
apk add --no-cache maven
fi
- name: Build with Maven - name: Build with Maven
run: mvn clean package run: mvn clean package