moleculerjs/moleculer-web

View on GitHub
.github/workflows/nodejs.yml

Summary

Maintainability
Test Coverage
name: Node CI

on: [push, pull_request]

jobs:
  test:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x]

    steps:
    - uses: actions/checkout@v2
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v2
      with:
        node-version: ${{ matrix.node-version }}
    - uses: actions/cache@v2
      with:
        path: node_modules
        key: ${{ matrix.node-version }}-node-${{ hashFiles('**/package-lock.json') }}
    - name: npm install, build, and test
      run: |
        npm ci
        npm test
      env:
        CI: true