Skip to content

Commit

Permalink
Merge pull request #58 from Bhavyajain21/fix/add-pnpm
Browse files Browse the repository at this point in the history
chore: Added pnpm installation(chore)
  • Loading branch information
hsb1007 authored Mar 19, 2024
2 parents a411713 + 27add2a commit 6325ea8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 22 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# This workflow runs ESLint, Prettier, unit tests, and e2e tests using pnpm.
name: CI

on:
Expand All @@ -17,6 +16,8 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install
- name: Run Prettier (Pre-commit or in workflow)
Expand All @@ -30,6 +31,8 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install
- name: Run ESLint
Expand Down
29 changes: 19 additions & 10 deletions .github/workflows/validate-pr-title.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
# This workflow validates pull request titles against Commitlint rules.
name: Validate PR Title
name: "Lint PR"

on:
pull_request:
pull_request:
types:
- opened
- edited
- synchronize
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
validate-title:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dreampulse/action-lint-pull-request-title@v3 # Action for title validation
with:
config: '.commitlintrc.js'
lint-pr:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- name: Lint PR
uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11 changes: 0 additions & 11 deletions backend/.commitlintrc.js

This file was deleted.

0 comments on commit 6325ea8

Please sign in to comment.