From 6b36a2bea49c400929039b52a6875d6a7ec109f9 Mon Sep 17 00:00:00 2001 From: Erik Hanson Date: Fri, 9 Feb 2024 14:29:17 -0800 Subject: [PATCH] Add npm --- .github/workflows/tests.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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