From fb64ad1403ac816cc1885cca81676dfc65fe2333 Mon Sep 17 00:00:00 2001 From: A1Gard Date: Mon, 26 Aug 2024 01:30:37 +0330 Subject: [PATCH] added node to workflow test --- .github/workflows/laravel.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/laravel.yml b/.github/workflows/laravel.yml index f123974..a673873 100644 --- a/.github/workflows/laravel.yml +++ b/.github/workflows/laravel.yml @@ -16,6 +16,9 @@ jobs: with: php-version: '8.2' - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '18' - name: Copy .env run: php -r "file_exists('.env') || copy('.env.example', '.env');" - name: remove composer lock @@ -35,6 +38,12 @@ jobs: DB_CONNECTION: sqlite DB_DATABASE: database/database.sqlite run: php artisan migrate --seed + - name: Npm install + run: npm install + - name: client build + run: php artisan client + - name: npm build + run: npm run build - name: Execute tests (Unit and Feature tests) via PHPUnit env: DB_CONNECTION: sqlite