Skip to content

Commit

Permalink
Merge pull request #7 from TrustNXT/feature/linter-integration
Browse files Browse the repository at this point in the history
GitHub Actions: Runs `eslint` on changes
  • Loading branch information
UlrichEckhardt authored Jul 15, 2024
2 parents 040300f + d0cc7ba commit a1ae98d
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/eslint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Linter

on:
pull_request:
branches:
- main
push:
branches:
- main

permissions:
contents: read

jobs:
# `eslint` static analyzer
#
# The package.json also has a format script built on `prettier`,
# but that is already integrated into `eslint` and not invoked
# separately here.
run-eslint:
name: Run eslint TypeScript Linter
runs-on: ubuntu-latest

steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4

- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
with:
cache: npm

- name: Install Dependencies
id: npm-ci
run: npm ci

- name: Run Lint Script
id: npm-lint
run: npm run lint

0 comments on commit a1ae98d

Please sign in to comment.