aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar vitalyster2022-03-30 02:42:19 +0300
committerGravatar Vitaly Takmazov2022-03-30 02:54:34 +0300
commitc5fc0a4edecd49ed503d267eb21acb93d40ddc78 (patch)
tree301960f78ab04c8dfbc55cb9c016c565a795ca14
parent81cfc8c1a1c7bc30672a6f86a79d7819d68742ff (diff)
CI: setup Node.JS action
This will enable problem matchers and cache
-rw-r--r--.github/workflows/ci.yml15
1 files changed, 5 insertions, 10 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 119a0964..8003055f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -19,17 +19,12 @@ jobs:
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- - name: Cache NPM modules
- uses: actions/cache@v2
- env:
- cache-name: cache-npm-modules
+ - name: Setup Node.JS
+ uses: actions/setup-node@v3
with:
- path: ~/.npm
- key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- restore-keys: |
- ${{ runner.os }}-build-${{ env.cache-name }}-
- ${{ runner.os }}-build-
- ${{ runner.os }}-
+ node-version: '16'
+ cache: 'npm'
+ - run: npm install
- name: Run tests
run: mvn package
- uses: mikepenz/action-junit-report@v2