Skip to content

Update PNPM version and action setup in workflow #3

Update PNPM version and action setup in workflow

Update PNPM version and action setup in workflow #3

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
env:
NODE_VERSION: '20.x'
PNPM_VERSION: '8.x'
jobs:
test-and-build:
name: Test and Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: ${{ env.PNPM_VERSION }}
run_install: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm run build
- name: Run unit tests
run: pnpm run test
# - name: Run e2e tests
# run: pnpm run test:e2e
# - name: Lint
# run: pnpm run lint