Merge pull request #180 from Mermade/dependabot/npm_and_yarn/eslint-8… #341
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
# Author: @MikeRalphson | |
# Issue : n/a | |
# Desc : This workflow runs a simple lint and test for a node.js project | |
# run this on push to any branch and creation of pull-requests | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 # checkout repo content | |
- uses: actions/setup-node@v1 # setup Node.js | |
with: | |
node-version: '18.x' | |
- name: Audit package-lock.json | |
run: npx package-lock-audit ./package-lock.json | |
- name: Install deps | |
run: npm i | |
- name: Run lint | |
run: npm run lint | |
- name: Run tests | |
run: npm run test |