Skip to content

Commit

Permalink
Setup jest environment for pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
YashNathani0708 committed Nov 14, 2024
1 parent 2670ad8 commit 2d206e5
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:
branches:
- main
- Deployment
- test-Deployment

jobs:
build:
Expand All @@ -21,21 +20,20 @@ jobs:
node-version: [20.x]

steps:
- uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

# Install dependencies
- name: Install Dependencies
run: npm ci

# Build the project
- name: Build Project
run: npm run build --if-present

# Run tests
- name: Run Tests
run: npm test
- uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install Dependencies
run: npm ci

- name: Build Project
run: npm run build --if-present

- name: Run Jest Tests
run: npm run test:jest --if-present
env:
CI: true

0 comments on commit 2d206e5

Please sign in to comment.