name: Laravel and Vue.js Build

on:
  push:
    branches:
      - main

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - name: Check out code
        uses: actions/checkout@v2

      - name: Set up Node.js
        uses: actions/setup-node@v2
        with:
          node-version: '16'  # نسخه Node.js که برای پروژه نیاز دارید

      - name: Install dependencies
        run: |
          npm install

      - name: Run build server
        run: |
          npm run build

      - name: Run dev server
        run: |
          npm run dev
