Skip to content

Commit

Permalink
Merge pull request #8 from InteractionDesignFoundation/dependencies
Browse files Browse the repository at this point in the history
Test asserts compilation
  • Loading branch information
alies-dev authored Feb 28, 2024
2 parents 2fcc468 + 47f8c66 commit 3434401
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,20 @@ jobs:
composer update ${{ matrix.dependency-version }} --prefer-dist --no-interaction --ansi --with="laravel/framework:${{ matrix.laravel }}" --with="orchestra/testbench:${{ matrix.testbench }}"
- name: Execute tests
run: composer run test
run: composer test

# NPM part (test whether assets can be compiled)
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Cache yarn dependencies
uses: actions/cache@v4
id: npm-node_modules-cache
with:
path: node_modules
key: npm-${{ hashFiles('package.json') }}-node-20

- name: Compile assets
run: npm install && npm run nova:install && npm run prod
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"hot": "mix watch --hot",
"prod": "npm run production",
"production": "mix --production",
"nova:install": "npm --prefix='../../vendor/laravel/nova' ci"
"nova:install": "npm --prefix='./vendor/laravel/nova' ci"
},
"devDependencies": {
"@vue/compiler-sfc": "^3.2.41",
Expand Down

0 comments on commit 3434401

Please sign in to comment.