Skip to content

Commit 3434401

Browse files
authored
Merge pull request #8 from InteractionDesignFoundation/dependencies
Test asserts compilation
2 parents 2fcc468 + 47f8c66 commit 3434401

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.github/workflows/run-tests.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,20 @@ jobs:
3838
composer update ${{ matrix.dependency-version }} --prefer-dist --no-interaction --ansi --with="laravel/framework:${{ matrix.laravel }}" --with="orchestra/testbench:${{ matrix.testbench }}"
3939
4040
- name: Execute tests
41-
run: composer run test
41+
run: composer test
42+
43+
# NPM part (test whether assets can be compiled)
44+
- name: Setup Node.js
45+
uses: actions/setup-node@v4
46+
with:
47+
node-version: 20
48+
49+
- name: Cache yarn dependencies
50+
uses: actions/cache@v4
51+
id: npm-node_modules-cache
52+
with:
53+
path: node_modules
54+
key: npm-${{ hashFiles('package.json') }}-node-20
55+
56+
- name: Compile assets
57+
run: npm install && npm run nova:install && npm run prod

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"hot": "mix watch --hot",
1212
"prod": "npm run production",
1313
"production": "mix --production",
14-
"nova:install": "npm --prefix='../../vendor/laravel/nova' ci"
14+
"nova:install": "npm --prefix='./vendor/laravel/nova' ci"
1515
},
1616
"devDependencies": {
1717
"@vue/compiler-sfc": "^3.2.41",

0 commit comments

Comments
 (0)