# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: NLM

on:
  pull_request:

jobs:
  tag:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
      with:
        fetch-depth: 0  # necessary to get full commit history
    - name: Use Node.js
      uses: actions/setup-node@v2
      with:
        node-version: 14
    - run: npm ci
    - run: npx nlm verify
      env:
        GH_TOKEN: ${{secrets.GITHUB_TOKEN}}