-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
59 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
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.21" | ||
cache: true | ||
check-latest: true | ||
|
||
- name: Compile shopware-cli | ||
run: go build | ||
|
||
- 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 | ||
|
||
- name: Validate Plugin | ||
run: ./shopware-cli extension validate FroshTools.zip | ||
|
||
- name: Get Changelog | ||
run: ./shopware-cli extension get-changelog plugin | ||
|
||
- 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: Setup the project | ||
run: ./shopware-cli project ci shopware |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters