mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-11-21 11:55:15 +01:00
run npm ci on gh actions
This commit is contained in:
parent
07e60e48ce
commit
e397893879
8
.github/workflows/gradle.yml
vendored
8
.github/workflows/gradle.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Java CI with Gradle
|
name: CI with Gradle and NPM
|
||||||
on: [ push, pull_request ]
|
on: [ push, pull_request ]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -21,6 +21,12 @@ jobs:
|
|||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-gradle-
|
${{ runner.os }}-gradle-
|
||||||
|
- name: Use Node.js 20
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
|
- name: Install NPM dependencies
|
||||||
|
run: npm ci
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew build
|
run: ./gradlew build
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
|
Loading…
Reference in New Issue
Block a user