Skip to content

Commit 04a4420

Browse files
committed
chore: test:format:js
1 parent 8f725ad commit 04a4420

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

.github/workflows/tests.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,18 @@ jobs:
1717
php-version: '8.2'
1818
tools: composer:v2
1919

20-
- name: Install dependencies
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '20'
24+
cache: 'npm'
25+
26+
- name: Install PHP dependencies
2127
run: composer install --prefer-dist --no-progress
2228

29+
- name: Install npm dependencies
30+
run: npm ci
31+
2332
- name: Unit tests with coverage
2433
run: composer test:unit:co
2534

@@ -30,4 +39,10 @@ jobs:
3039
run: composer test:stan
3140

3241
- name: Test PHP formating
33-
run: composer test:format:php
42+
run: composer test:format:php
43+
44+
- name: JavaScript tests
45+
run: composer test:js
46+
47+
- name: Tests JS formating
48+
run: composer test:format:js

composer.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,8 @@
2828
}
2929
},
3030
"scripts": {
31-
"lint": [
32-
"npm run lint"
33-
],
34-
"test:lint": [
35-
"npm run lint:check"
36-
],
31+
"lint": "npm run lint",
32+
"test:lint": "npm run lint:check",
3733
"test:unit": "pest --parallel",
3834
"test:unit:co": "pest --parallel --coverage --min=100",
3935
"test:type-co": "pest --parallel --type-coverage --min=100",

0 commit comments

Comments
 (0)