Skip to content

chore: correct branch to checkout #136

chore: correct branch to checkout

chore: correct branch to checkout #136

Workflow file for this run

name: Test
on:
push:
branches:
- '2.0'
tags-ignore:
- '*'
pull_request_target:
schedule:
- cron: "5 15 * * *"
jobs:
test:
env:
PLUGIN_NAME: FroshProductCompare
strategy:
fail-fast: false
matrix:
version: [ "v6.5.8.7", "6.5.x" ]
runs-on: ubuntu-latest
steps:
- name: Setup Shopware
uses: shopware/setup-shopware@main
with:
shopware-version: ${{ matrix.version }}
php-version: 8.2
php-extensions: pcov
- name: Checkout 2.0
if: github.event_name != 'pull_request'
uses: actions/checkout@v4
with:
ref: '2.0'
path: ${{ github.workspace }}/custom/plugins/${{ env.PLUGIN_NAME }}
- name: Checkout Pull Request
if: github.event_name == 'pull_request'
uses: actions/checkout@v4
with:
path: ${{ github.workspace }}/custom/plugins/${{ env.PLUGIN_NAME }}
- name: PHPUnit
working-directory: ${{ github.workspace }}/custom/plugins/${{ env.PLUGIN_NAME }}
run: |
${{ github.workspace }}/vendor/bin/phpstan analyse -c ${{ github.workspace }}/custom/plugins/${{ env.PLUGIN_NAME }}/phpstan.neon.dist