diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0052a75..fafc81d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,10 +24,16 @@ jobs: tools: composer:v2 coverage: xdebug + - name: Install Node + uses: actions/setup-node@v3 + with: + node-version: 20.x + cache: 'npm' + - name: Copy .env run: php -r "file_exists('.env') || copy('.env.example', '.env');" - - name: Install Dependencies + - name: Install PHP Dependencies run: composer install --no-interaction --prefer-dist --optimize-autoloader - name: Generate key @@ -41,6 +47,9 @@ jobs: mkdir -p database touch database/database.sqlite + - name: Install NPM Dependencies + run: npm ci && npm run build + - name: Run Tests env: DB_CONNECTION: sqlite