Skip to content

Commit

Permalink
SCKAN-206 chore: Add linting github action
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsobspinto committed Jan 26, 2024
1 parent cf998c7 commit ca326d3
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/onPR.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Lint Code Base

on:
pull_request:
branches: [ main, develop ]

jobs:
lint:
name: Run ESLint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- name: Cache node modules
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-modules-${{ hashFiles('frontend/package-lock.json') }}

- name: Install Node.js dev dependencies
run: npm install --only=dev
working-directory: ./frontend

- name: Run lint
run: npm run lint

0 comments on commit ca326d3

Please sign in to comment.