Skip to content

Update project dependencies #19

Update project dependencies

Update project dependencies #19

Workflow file for this run

name: Node.js test and Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: ['16']
java: ['8']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: ${{ matrix.java }}
cache: 'sbt'
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm install
- name: Run sbt once in the test project to make sure sbt is downloaded
run: sbt projects
working-directory: ./test/testproject
- name: Perform unit test
run: npm test
- name: Build
run: npm run build