Skip to content

Commit

Permalink
feat: add CI for build and check lint JS
Browse files Browse the repository at this point in the history
  • Loading branch information
ga-devfront committed Sep 2, 2024
1 parent c8495f4 commit 573b102
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/js.yml
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

0 comments on commit 573b102

Please sign in to comment.