-
Notifications
You must be signed in to change notification settings - Fork 122
49 lines (40 loc) · 1.47 KB
/
build-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Build module & upload artifact
on:
workflow_dispatch:
workflow_call:
jobs:
build:
name: Build dependencies & create artifact
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv, ext-zip
- 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.x'
- name: Install and build npm dependencies
run: |
npm install --prefix ./_dev
npm run vite:build --prefix ./_dev
- name: Install composer dev dependencies for tests
working-directory: tests
run: composer install --ansi --prefer-dist --no-interaction --no-progress
- name: Apply header stamps
run: php tests/vendor/bin/header-stamp --license=tests/vendor/prestashop/header-stamp/assets/afl.txt --target=./views --exclude=templates,img
- name: Clean-up project
uses: PrestaShopCorp/github-action-clean-before-deploy@v2.0
with:
paths: storybook _dev
- name: Create & upload artifact
uses: actions/upload-artifact@v4.1.0
with:
name: ${{ github.event.repository.name }}
path: '.'