Skip to content

Commit

Permalink
adding a basic npm linting workflow for ui dir
Browse files Browse the repository at this point in the history
Signed-off-by: greg pereira <[email protected]>
  • Loading branch information
Gregory-Pereira committed May 16, 2024
1 parent 02cb834 commit 8fd4ec3
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/lint-ui.yml
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

0 comments on commit 8fd4ec3

Please sign in to comment.