-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added CI workflow for running eslint
- Loading branch information
1 parent
fda7782
commit 9110cc7
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Continuous Integration (CI) Workflow | ||
name: ci | ||
|
||
# See: | ||
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#on | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
lint: | ||
name: ESLint | ||
runs-on: ubuntu-latest | ||
steps: | ||
# https://github.com/actions/checkout | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
# https://github.com/actions/setup-node | ||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
# Use node LTS version 18 - https://github.com/actions/setup-node#supported-version-syntax | ||
node-version: '18' | ||
# Cache npm dependencies so they don't have to be downloaded next time - https://github.com/actions/setup-node#caching-packages-dependencies | ||
cache: 'npm' | ||
|
||
- name: Install node dependencies | ||
#See: https://docs.npmjs.com/cli/v8/commands/npm-ci | ||
run: npm ci | ||
|
||
- name: Run ESLint | ||
run: npm run lint |