Skip to content

Commit

Permalink
ci: update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Feb 10, 2024
1 parent 0cf541d commit 282f1b6
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 52 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ on:

jobs:
build:
uses: FriendsOfShopware/actions/.github/workflows/store-shopware-cli.yml@main
uses: shopware/github-actions/.github/workflows/build-zip.yml@main
with:
extensionName: ${{ github.event.repository.name }}
secrets:
accountUser: ${{ secrets.ACCOUNT_USER }}
accountPassword: ${{ secrets.ACCOUNT_PASSWORD }}
ghToken: ${{ secrets.GITHUB_TOKEN }}
18 changes: 0 additions & 18 deletions .github/workflows/qodana.yaml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Release to Store
on:
workflow_dispatch:
jobs:
build:
uses: shopware/github-actions/.github/workflows/store-release.yml@main
with:
extensionName: ${{ github.event.repository.name }}
secrets:
accountUser: ${{ secrets.SHOPWARE_CLI_ACCOUNT_EMAIL }}
accountPassword: ${{ secrets.SHOPWARE_CLI_ACCOUNT_PASSWORD }}
ghToken: ${{ secrets.GITHUB_TOKEN }}
38 changes: 9 additions & 29 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,23 @@ on:
push:
branches:
- 'main'
- 'feature/6.6-compatibility'
tags-ignore:
- '*'
pull_request:

jobs:
phpunit:
name: Run tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
shopware-version:
- 'v6.6.0.0-rc1'
steps:
- name: Setup Shopware
uses: FriendsOfShopware/setup-shopware@main
with:
shopware-version: ${{ matrix.shopware-version }}
php-version: 8.2
php-extensions: pcov

- name: Checkout
uses: actions/checkout@v3
with:
path: custom/plugins/FroshPlatformTemplateMail

- name: Run Tests
run: |
cd custom/plugins/FroshPlatformTemplateMail/
php -d pcov.enabled=1 ../../../vendor/bin/phpunit --coverage-clover clover.xml
- name: Upload coverage
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./clover.xml
root_dir: /home/runner/work/FroshPlatformTemplateMail/FroshPlatformTemplateMail/custom/plugins/FroshPlatformTemplateMail/
working-directory: /home/runner/work/FroshPlatformTemplateMail/FroshPlatformTemplateMail/custom/plugins/FroshPlatformTemplateMail/
- '6.5.x'
- 'v6.6.0.0-rc2'
uses: shopware/github-actions/.github/workflows/phpunit.yml@main
with:
extensionName: ${{ github.event.repository.name }}
shopwareVersion: ${{ matrix.shopware-version }}
uploadCoverage: true
secrets:
codecovToken: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 282f1b6

Please sign in to comment.