name: Build Validation

on:
  pull_request:
    types: [opened, synchronize, reopened]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: checkout Repository
        uses: actions/checkout@v4

      - name: use NodeJS v22.16.0
        uses: actions/setup-node@v4
        with:
          node-version: '22.16.0'

      - name: Install Dependencies
        run: npm install

      - name: run Build DEV 
        run: npm run buildDevelopment

      - name: run Build PROD
        run: npm run buildProduction
