Skip to content

Merge pull request #6 from Async-AC-Team/OsamaRab3-patch-1 #6

Merge pull request #6 from Async-AC-Team/OsamaRab3-patch-1

Merge pull request #6 from Async-AC-Team/OsamaRab3-patch-1 #6

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' # Using a more stable version of pnpm
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 --no-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