This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user