Skip to content

Commit

Permalink
Merge pull request #13 from ngx-primer/feature/accordion
Browse files Browse the repository at this point in the history
fix: fix ci node js
  • Loading branch information
elhakimdev authored Nov 27, 2024
2 parents 0c1c87f + 0e352ac commit e3c9243
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ name: Node.js CI

on:
push:
branches: [ "main" , "develop"]
branches: [ "main", "develop" ]
pull_request:
branches: [ "main" , "develop"]
branches: [ "main", "develop" ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
Expand All @@ -23,20 +22,24 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache: 'pnpm' # Cache pnpm instead of npm

# Install pnpm
- name: Install pnpm
run: npm install -g pnpm

# Install dependencies using Nx CLI
# Install dependencies using pnpm
- name: Install Dependencies
run: npm ci
run: pnpm install --frozen-lockfile

# Run build (Nx should handle the build, can be adjusted if specific commands are needed)
- name: Build the project
run: npm run build --if-present
run: pnpm run build --if-present

# Run tests using Nx (adjust the test command if needed for Nx-specific testing)
- name: Run Tests
run: npm run test --if-present
run: pnpm run test --if-present

# Optionally, you can also run linting if set up in Nx
- name: Run Lint
run: npm run lint --if-present
run: pnpm run lint --if-present

0 comments on commit e3c9243

Please sign in to comment.