Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
SAINIAbhishek committed Oct 3, 2024
1 parent 3752978 commit 0d88f1a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,23 @@ jobs:
cache-path: 'node_modules'
cache-key-prefix: 'auth'
working-directory: './'

# Step: Lint the code
lint-server:
needs: [npm] # Wait for dependencies to be installed before linting
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

# Restore Modules cache
- name: Restore Modules Cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-auth-${{ hashFiles('package-lock.json') }}

# Lint the server code
- name: Linting
run: npm run lint
working-directory: ./

0 comments on commit 0d88f1a

Please sign in to comment.