This commit is contained in:
parent
c512b5ce05
commit
38074b78fe
1 changed files with 5 additions and 16 deletions
|
@ -13,29 +13,18 @@ jobs:
|
|||
runs-on: ubuntu
|
||||
|
||||
steps:
|
||||
- name: Install Node.js
|
||||
run: |
|
||||
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
|
||||
sudo apt-get install -y nodejs
|
||||
node -v
|
||||
npm -v
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install JDK 21
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y openjdk-21-jdk
|
||||
java -version
|
||||
|
||||
- name: Cache Maven dependencies
|
||||
uses: actions/cache@v2
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: ~/.m2/repository
|
||||
key: maven-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: |
|
||||
maven-
|
||||
repository: MelonEconomy/Melon-Proxy
|
||||
ref: main
|
||||
|
||||
|
||||
- name: Build with Maven
|
||||
run: mvn clean install -DskipTests
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue