Skip to content

Commit

Permalink
added backend-lint.yml & client-lint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
uwezukwechibuzor committed Jul 14, 2023
1 parent 577c165 commit d8dc0ce
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Backend and Client Lint
name: Backend Lint

on:
push:
Expand All @@ -9,7 +9,7 @@ on:
- main

jobs:
backend-client-lint:
backend-lint:
runs-on: ubuntu-latest

steps:
Expand All @@ -29,14 +29,4 @@ jobs:
- name: Run backend linter
run: |
cd backend
npm run lint
- name: Install client dependencies
run: |
cd client
npm ci
- name: Run client linter
run: |
cd client
npm run lint
32 changes: 32 additions & 0 deletions .github/workflows/client-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Client Lint

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
client-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: 14

- name: Install client dependencies
run: |
cd client
npm ci
- name: Run client linter
run: |
cd client
npm run lint

0 comments on commit d8dc0ce

Please sign in to comment.