diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6d0a12e..1655bc1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }} diff --git a/.github/workflows/qodana.yaml b/.github/workflows/qodana.yaml deleted file mode 100644 index 3371db3..0000000 --- a/.github/workflows/qodana.yaml +++ /dev/null @@ -1,18 +0,0 @@ -name: Qodana -on: - workflow_dispatch: - schedule: - - cron: '0 0 * * *' - -jobs: - qodana: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: 'Qodana Scan' - uses: JetBrains/qodana-action@main - env: - QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7d0cd69 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 2ca24c9..b97a3cb 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -3,7 +3,6 @@ on: push: branches: - 'main' - - 'feature/6.6-compatibility' tags-ignore: - '*' pull_request: @@ -11,35 +10,16 @@ on: 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 }}