Skip to content

Refactor validation logic to use new validation package #853

Refactor validation logic to use new validation package

Refactor validation logic to use new validation package #853

Workflow file for this run

name: Smoke Test
on:
push:
branches:
- main
pull_request:
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49
with:
egress-policy: audit
- name: Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # ratchet:actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # ratchet:actions/setup-go@v5
with:
go-version: '1.24'
cache: true
check-latest: true
- name: Setup PHP
uses: shivammathur/setup-php@0f7f1d08e3e32076e51cae65eb0b0c871405b16e # ratchet:shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Compile shopware-cli
run: go build
- name: Checkout Plugin
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # ratchet:actions/checkout@v4
with:
repository: 'FriendsOfShopware/FroshTools'
ref: '75e2013752fd4db7535e4b72b3e3e8d57e531002'
path: 'plugin'
- name: Create Shopware
run: ./shopware-cli project create shopware 6.5.7.3
- name: Build asset of Plugin
run: ./shopware-cli extension zip plugin
- name: Build asset of Plugin without Git
run: ./shopware-cli extension zip plugin --disable-git --release
- name: Validate Plugin
run: ./shopware-cli extension validate FroshTools.zip
- name: Get Changelog
run: ./shopware-cli extension get-changelog FroshTools.zip
- name: Build asset against custom PROJECT_ROOT
env:
SHOPWARE_PROJECT_ROOT: ${{ github.workspace }}/shopware
run: |
mv plugin/.shopware-extension.yml plugin/.shopware-extension-disable.yml
./shopware-cli extension build plugin
mv plugin/.shopware-extension-disable.yml plugin/.shopware-extension.yml
- name: Install a Storefront Plugin
working-directory: shopware
run: |
composer require 'frosh/platform-filter-search:*' --no-interaction --no-scripts
rm -rf vendor
- name: Setup the project
run: ./shopware-cli project ci shopware