Улучшение CI/CD

This commit is contained in:
RoyceDa
2026-03-20 20:28:50 +02:00
parent 6d94a6e72d
commit eeb3886a32

View File

@@ -27,7 +27,18 @@ jobs:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Install maven IF not Exists
run: |
if ! command -v mvn &> /dev/null; then
echo "Maven not found, installing..."
if 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
fi
else
echo "Maven is already installed."
fi
- name: Build with Maven
run: mvn clean package