Skip to content

Merge pull request #17 from prasadhonrao/feature/api-ci-cd-workflow #1

Merge pull request #17 from prasadhonrao/feature/api-ci-cd-workflow

Merge pull request #17 from prasadhonrao/feature/api-ci-cd-workflow #1

Workflow file for this run

name: API - Linting
on:
push:
branches:
- main
paths:
- 'api/**'
pull_request:
branches:
- main
paths:
- 'api/**'
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install dependencies
run: |
cd api
npm install
- name: Run linter
run: |
cd api
npm run lint