Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -21,7 +21,7 @@ jobs:
run: composer install --ansi --prefer-dist --no-interaction --no-progress --no-dev

- name: Setup node
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: '20.x'

Expand All @@ -43,7 +43,7 @@ jobs:
paths: storybook _dev

- name: Create & upload artifact
uses: actions/upload-artifact@v4.1.0
uses: actions/upload-artifact@v7
with:
name: ${{ github.event.repository.name }}
path: '.'
12 changes: 6 additions & 6 deletions .github/workflows/checksUI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ jobs:

steps:
- name: Checkout the repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Cache Playwright browsers
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: ~/.cache/ms-playwright/
key: ${{ runner.os }}-browsers

- name: Setup Node
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}

Expand All @@ -46,16 +46,16 @@ jobs:

steps:
- name: Checkout the repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Cache Playwright browsers
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: ~/.cache/ms-playwright/
key: ${{ runner.os }}-browsers

- name: Setup Node
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/extract-translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
OWNER_NAME: ${{ github.repository_owner }}
steps:
- name: Checkout module-translation-tool
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: PrestaShopCorp/module-translation-tool
ref: main
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/header-stamps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Header Stamps
on: [push, pull_request]
concurrency:
group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
header-stamp:
name: Check license headers
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6

- name: Setup PHP 8.3
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'

- run: composer install
working-directory: ./tests

- name: Run Header Stamp in Dry Run mode
run: |
composer header-stamp || {
echo "::error::Some headers are missing or incorrect. Run 'composer header-stamp-fix' to autofix them."
exit 1
}
8 changes: 4 additions & 4 deletions .github/workflows/js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup node
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: '20.x'

Expand All @@ -28,10 +28,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup node
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: '20.x'

Expand Down
34 changes: 6 additions & 28 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: PHP syntax checker 7.1
uses: prestashop/github-action-php-lint/7.1@master
Expand Down Expand Up @@ -53,10 +53,10 @@ jobs:
php-version: '7.1'

- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Cache dependencies
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: vendor
key: php-${{ hashFiles('composer.lock') }}
Expand All @@ -79,7 +79,7 @@ jobs:
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv, ext-zip
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0

Expand All @@ -96,7 +96,7 @@ jobs:
presta-versions: ['1.7.2.5', '1.7.3.4', '1.7.4.4', '1.7.5.1', '1.7.6', '1.7.7', '1.7.8', '8.0.0', '9.0.0', 'latest']
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- run: composer install

Expand All @@ -112,7 +112,7 @@ jobs:
name: PHP 5.6 Syntax Check
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -124,25 +124,3 @@ jobs:
for file in autoupgrade.php controllers/admin/AdminSelfUpgradeController.php classes/VersionUtils.php classes/UpgradeTools/Translator.php; do
php -l $file;
done

header-stamp:
name: Check license headers
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP 8.3
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'

- run: composer install
working-directory: ./tests

- name: Run Header Stamp in Dry Run mode
run: |
php ./tests/vendor/bin/header-stamp --license=./tests/vendor/prestashop/header-stamp/assets/afl.txt --exclude=vendor,node_modules,storybook/var,tests/fixtures --dry-run || {
echo "::error::Some headers are missing or incorrect. Run 'php ./tests/vendor/bin/header-stamp --license=./tests/vendor/prestashop/header-stamp/assets/afl.txt --exclude=vendor,node_modules,storybook/var,tests/fixtures' to autofix them."
exit 1
}
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
needs: create_artifact
steps:
- name: Download built artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: ${{ github.event.repository.name }}

Expand All @@ -37,7 +37,7 @@ jobs:
needs: create_release_zip
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Download release asset
run: |
Expand All @@ -59,9 +59,9 @@ jobs:
runs-on: ubuntu-latest
if: github.event.release.prerelease == false
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Sentry Release PHP
uses: getsentry/action-release@v1
uses: getsentry/action-release@v3
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/rollback_ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Set matrix
id: set-matrix
run: echo "matrix=$(jq -c '. | del(.include[] | select(has("comment")))' .github/workflows/ui-test/${{ env.JSON_FILE }})" >> $GITHUB_OUTPUT
Expand All @@ -44,7 +44,7 @@ jobs:
PS_DOCKER: ${{ matrix.PS_VERSION_START }}-${{ matrix.PHP_VERSION }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Start containers
working-directory: tests/UI/
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
run: docker compose logs --no-color >& docker-compose.log

- name: Upload artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
if: always()
with:
name: playwright-report-${{ matrix.PS_VERSION_START }}-${{ matrix.PS_VERSION_END }}-${{ matrix.UPGRADE_CHANNEL }}-${{ matrix.PHP_VERSION }}
Expand All @@ -144,12 +144,12 @@ jobs:
id-token: 'write'
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Download report
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: playwright-report-${{ matrix.PS_VERSION_START }}-${{ matrix.PS_VERSION_END }}-${{ matrix.UPGRADE_CHANNEL }}-${{ matrix.PHP_VERSION }}
path: tests/UI/
Expand All @@ -163,14 +163,14 @@ jobs:
mv report.json nightly/${REPORT_NAME}.json
# Nightly : Auth GCP
- name: "Nightly : Auth GCP"
uses: google-github-actions/auth@v2
uses: google-github-actions/auth@v3
with:
credentials_json: ${{ secrets.GC_SERVICE_KEY }}
project_id: ${{ secrets.GC_PROJECT_ID }}

# Nightly : Setup GCP
- name: "Nightly : Setup GCP"
uses: google-github-actions/setup-gcloud@v2
uses: google-github-actions/setup-gcloud@v3

# Nightly : Upload to Google Cloud Storage (GCS)
- name: "Nightly : Upload to Google Cloud Storage (GCS)"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scss-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
steps:
# Checkout the repository to access the code
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v6

# Set up Node.js environment
- name: Set up Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: '20'

Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/upgrade-classic-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Set matrix
id: set-matrix
run: echo "matrix=$(jq -c '. | del(.include[] | select(has("comment")))' .github/workflows/ui-test/${{ env.JSON_FILE }})" >> $GITHUB_OUTPUT
Expand All @@ -44,7 +44,7 @@ jobs:
PS_DOCKER: ${{ matrix.PS_VERSION_START }}-${{ matrix.PHP_VERSION }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Start containers
working-directory: tests/UI/
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
docker exec -t prestashop chmod 777 -R /var/www/html/var

- name: Setup node
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: '20.x'

Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:
run: docker compose logs --no-color >& docker-compose.log

- name: Upload artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
if: always()
with:
name: playwright-report-${{ matrix.PS_VERSION_START }}-${{ matrix.PS_VERSION_END }}-${{ matrix.UPGRADE_CHANNEL }}-${{ matrix.PHP_VERSION }}
Expand All @@ -157,12 +157,12 @@ jobs:
id-token: 'write'
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Download report
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: playwright-report-${{ matrix.PS_VERSION_START }}-${{ matrix.PS_VERSION_END }}-${{ matrix.UPGRADE_CHANNEL }}-${{ matrix.PHP_VERSION }}
path: tests/UI/
Expand All @@ -176,14 +176,14 @@ jobs:
mv report.json nightly/${REPORT_NAME}.json
# Nightly : Auth GCP
- name: "Nightly : Auth GCP"
uses: google-github-actions/auth@v2
uses: google-github-actions/auth@v3
with:
credentials_json: ${{ secrets.GC_SERVICE_KEY }}
project_id: ${{ secrets.GC_PROJECT_ID }}

# Nightly : Setup GCP
- name: "Nightly : Setup GCP"
uses: google-github-actions/setup-gcloud@v2
uses: google-github-actions/setup-gcloud@v3

# Nightly : Upload to Google Cloud Storage (GCS)
- name: "Nightly : Upload to Google Cloud Storage (GCS)"
Expand Down
Loading
Loading