[Snyk] Security upgrade @shopware-ag/e2e-testsuite-platform from 1.3.0-beta.0 to 3.0.7 #563
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
name: PHPUnit | |
on: | |
push: | |
branches: | |
- '6.2' | |
- master | |
pull_request: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
php: ['7.2', '7.3', '7.4'] | |
runs-on: ubuntu-latest | |
env: | |
DEVELOPMENT_BRANCH: master | |
TEST_SUITES: 'administration storefront checkout content framework profiling migration system elasticsearch docs' | |
steps: | |
- name: Clone development | |
run: git clone -b $DEVELOPMENT_BRANCH https://github.com/shopware/development.git && cd development && rm -rf platform | |
- name: Clone platform | |
uses: actions/checkout@v2 | |
with: | |
path: development/platform | |
- name: Fix platform for composer | |
run: | | |
cd development/platform | |
git fetch --prune --unshallow | |
git checkout master | |
git checkout - | |
cd .. | |
git reset --hard @ | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: composer, prestissimo | |
coverage: none | |
- name: Start MySQL | |
run: ./development/platform/.github/setup-db.sh mysql:5.7 | |
- name: Start Elasticsearch | |
run: ./development/platform/.github/setup-es.sh elastic/elasticsearch:7.1.1 | |
- name: Install Shopware | |
run: | | |
cd development | |
cp platform/.github/.psh.yaml.override . | |
./psh.phar init-composer | |
if [[ ! -h vendor/shopware/platform ]]; then echo 'vendor/shopware/platform should be a symlink'; exit 1; fi | |
nohup php -S localhost:8000 -t public > phpd.log 2>&1 & | |
./psh.phar init | |
- name: Run PHPUnit | |
run: 'cd development; for TEST_SUITE in $TEST_SUITES; do php -d memory_limit=-1 vendor/bin/phpunit --configuration vendor/shopware/platform/phpunit.xml.dist --exclude-group needsWebserver --testsuite "$TEST_SUITE"; done' |