Skip to content

Commit

Permalink
Add npm
Browse files Browse the repository at this point in the history
  • Loading branch information
ewhanson committed Feb 9, 2024
1 parent f30c8a7 commit 6b36a2b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6b36a2b

Please sign in to comment.