Skip to content

Commit

Permalink
add github linting workflow step
Browse files Browse the repository at this point in the history
  • Loading branch information
echo-bravo-yahoo committed Nov 20, 2024
1 parent 53a92e7 commit 1a5f84a
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Lint

on:
# temporarily "v3"; change to "main" after merge
push:
branches: ["v3"]
pull_request:
branches: ["v3"]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Lint (nodeJS 22.x)
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: "npm"
- run: npm run lint
env:
TERM: xterm-256color
# Set to the correct color level; 2 is 256 colors
# https://github.com/chalk/chalk?tab=readme-ov-file#supportscolor
FORCE_COLOR: 2

0 comments on commit 1a5f84a

Please sign in to comment.