name: npm

on:
  push:
  pull_request:
    types: [opened, synchronize]

env:
  node-version: 6.x

jobs:
  test:
    runs-on: ubuntu-16.04
    steps:
    - uses: actions/checkout@v2
    - name: Use Node.js ${{ env.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ env.node-version }}
    - name: Run npm test
      timeout-minutes: 10
      run: |
        npm install -g grunt-cli
        npm install
        npm test

name: npm

on:
  push:
  pull_request:
    types: [opened, synchronize]

env:
  node-version: 6.x

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Use Node.js ${{ env.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ env.node-version }}
    - name: Run npm test
      timeout-minutes: 10
      run: |
        npm install -g grunt-cli
        npm install
        npm test

Test on latest virtual environment
Test on latest virtual environment
