Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
SAINIAbhishek committed Oct 3, 2024
1 parent 0d88f1a commit c5951d3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
working-directory: './'

# Step: Lint the code
lint-server:
lint:
needs: [npm] # Wait for dependencies to be installed before linting
runs-on: ubuntu-latest
steps:
Expand All @@ -36,6 +36,26 @@ jobs:
key: ${{ runner.os }}-auth-${{ hashFiles('package-lock.json') }}

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

# Step: Formatting
format:
needs: [npm] # Dependencies must be installed before formatting
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') }}

# Format the code with Prettier
- name: Checking Formatting with Prettier
run: npm run prettier
working-directory: ./
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Node.js Authentication & Authorization Backend Typescript Project (Learning project)
# Node.js Authentication & Authorization Backend Typescript Project (Learning project) [![Node Auth Application Pipeline](https://github.com/SAINIAbhishek/nodejs_auth-api/actions/workflows/ci.yml/badge.svg)](https://github.com/SAINIAbhishek/nodejs_auth-api/actions/workflows/ci.yml)

This project is a scalable, well-structured Node.js backend built with TypeScript. It's designed to handle the complexity and scale of modern applications, while being optimized for different environments.

Expand Down

0 comments on commit c5951d3

Please sign in to comment.