Skip to content

Commit

Permalink
New workflow: nodejs lint
Browse files Browse the repository at this point in the history
- add standardjs and pre-merge action
- output from standard --fix
- manual lint fixes
- disable camelcase rule when needed, fix vars
- avoid confusing const inside loop
- node.js.yml: fix npm lint pass

Signed-off-by: Andrea Brancaleoni <[email protected]>
  • Loading branch information
diracdeltas authored and thypon committed Mar 13, 2024
1 parent be3a85d commit 4b9eea6
Show file tree
Hide file tree
Showing 12 changed files with 3,791 additions and 463 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run lint and npm audit.
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm audit
- run: npm run lint
Loading

0 comments on commit 4b9eea6

Please sign in to comment.