Skip to content

Merge pull request #386 from coapjs/prepare-release #624

Merge pull request #386 from coapjs/prepare-release

Merge pull request #386 from coapjs/prepare-release #624

Workflow file for this run

name: StandardJS Linter
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
lint:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [18.x]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
# Caches NPM and the node_modules folder for faster builds
- name: Cache node modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Use linter
run: npm run lint