-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add CI for build and check lint JS
- Loading branch information
1 parent
c8495f4
commit 573b102
Showing
2 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,10 +20,22 @@ jobs: | |
- name: Install composer dependencies | ||
run: composer install --ansi --prefer-dist --no-interaction --no-progress --no-dev | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.11.0' | ||
|
||
- name: Install and build npm dependencies | ||
run: | ||
npm install --prefix ./_dev | ||
npm vite:build --prefix ./_dev | ||
|
||
- name: Clean-up project | ||
uses: PrestaShopCorp/[email protected] | ||
with: | ||
paths: storybook | ||
paths: | ||
- storybook | ||
- _dev | ||
|
||
- name: Create & upload artifact | ||
uses: actions/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: JS tests | ||
on: [push, pull_request] | ||
concurrency: | ||
group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
js-linter: | ||
name: JS linter syntax check | ||
runs-on: unbuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.11.0' | ||
|
||
- name: Install npm dependencies | ||
run: | ||
npm install --prefix ./_dev | ||
|
||
- name: Launch Eslint | ||
run: | ||
npm lint --prefix ./_dev |