Skip to content

Commit

Permalink
Add eslint to Github workflows
Browse files Browse the repository at this point in the history
We want this code to be well formatted even if it is just for automated
tests. To ensure this, run linting checks when opening pull requests.

PER-9318: Write healthcheck test (webclient functional test)
  • Loading branch information
meisekimiu committed Aug 2, 2023
1 parent 9e61071 commit ef8a993
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/lint-js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Lint (TypeScript)

on:
pull_request:
workflow_dispatch:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "18"
- uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node_modules-
- name: Move to JS directory
run: cd js
- name: Install dependencies
run: npm install
- name: Run eslint
run: npm run lint

0 comments on commit ef8a993

Please sign in to comment.