From c5fc0a4edecd49ed503d267eb21acb93d40ddc78 Mon Sep 17 00:00:00 2001 From: vitalyster Date: Wed, 30 Mar 2022 02:42:19 +0300 Subject: CI: setup Node.JS action This will enable problem matchers and cache --- .github/workflows/ci.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to '.github/workflows') 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 -- cgit v1.2.3