Skip to content

Commit a30edcb

Browse files
authored
Merge pull request #106 from magento-commerce/github-actions-update
Extracted js tests to a separate build
2 parents 2c9a24a + 9ffb1a5 commit a30edcb

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

.github/workflows/php.yml

+21-6
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ on:
77
branches: [ master, develop ]
88

99
jobs:
10-
build:
11-
10+
php:
1211
runs-on: ubuntu-latest
1312
strategy:
1413
fail-fast: false
@@ -41,10 +40,6 @@ jobs:
4140

4241
- name: Install dependencies
4342
run: npm install
44-
- name: Run ESLint
45-
run: npm run eslint -- eslint/rules
46-
- name: Run JSCS
47-
run: npm run jscs eslint/rules Magento2
4843

4944
- name: Validate composer
5045
run: composer validate
@@ -63,3 +58,23 @@ jobs:
6358

6459
- name: Run framework suite
6560
run: vendor/bin/phpcs --standard=Magento2Framework Magento2/Helpers Magento2/Sniffs Magento2Framework/Sniffs
61+
js:
62+
runs-on: ubuntu-latest
63+
name: Javascript tests
64+
65+
steps:
66+
- name: Setup node
67+
uses: actions/setup-node@v2
68+
with:
69+
node-version: '16'
70+
71+
- uses: actions/checkout@v2
72+
73+
- name: Install dependencies
74+
run: npm install
75+
76+
- name: Run ESLint
77+
run: npm run eslint -- eslint/rules
78+
79+
- name: Run JSCS
80+
run: npm run jscs eslint/rules Magento2

0 commit comments

Comments
 (0)