-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding a basic npm linting workflow for ui dir
Signed-off-by: greg pereira <[email protected]>
- Loading branch information
1 parent
02cb834
commit 8fd4ec3
Showing
1 changed file
with
36 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,36 @@ | ||
name: Lint UI changes | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
paths: | ||
- '.github/workflows/lint-ui.yml' | ||
- 'ui/*' | ||
- '!ui/README.md' | ||
pull_request: | ||
branches: ["main"] | ||
paths: | ||
- '.github/workflows/lint-ui.yml' | ||
- 'ui/*' | ||
- '!ui/README.md' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
npm-lint: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
- name: Install dependencies | ||
run: npm install | ||
working-directory: ui | ||
- name: Run UI linting | ||
run: npm run lint | ||
working-directory: ui |