Skip to content

Commit

Permalink
Ci: add ESLint (#234)
Browse files Browse the repository at this point in the history
* ci: renamed for general tests and checks

* ci: add eslint test

* ci: rename test file
  • Loading branch information
OmriBarZik authored Jun 28, 2022
1 parent 38d6998 commit 06b890d
Showing 1 changed file with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Validate JSONs on PR
name: Tests
on: [pull_request]
jobs:
validate_schemas:
Expand All @@ -12,3 +12,19 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
json_schema: ./schemas/people-schema.json
json_path_pattern: ^people/.+\.json$
eslint:
name: ESLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run ESLint
run: npm run lint

0 comments on commit 06b890d

Please sign in to comment.