-
Notifications
You must be signed in to change notification settings - Fork 32
73 lines (58 loc) · 2.02 KB
/
smoke-test.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Smoke Test
on:
push:
branches:
- main
pull_request:
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
cache: true
check-latest: true
- name: Compile shopware-cli
run: go build
- name: Move to bin
run: sudo mv shopware-cli /usr/local/bin/shopware-cli
- name: Checkout Plugin
uses: 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: Build Storefront
working-directory: shopware
run: shopware-cli project storefront-build
- name: Build Administration
working-directory: shopware
run: shopware-cli project admin-build
- name: Setup the project
run: ./shopware-cli project ci shopware