Skip to content

Add platform.sh configuration #3

Add platform.sh configuration

Add platform.sh configuration #3

Workflow file for this run

name: Continuous Integration
on:
push: ~
pull_request: ~
release:
types: [created]
workflow_dispatch: ~
jobs:
tests:
runs-on: ubuntu-latest
name: "Sylius ${{ matrix.sylius }}, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, MySQL ${{ matrix.mysql }}"
strategy:
fail-fast: false
matrix:
php: ["8.0", "8.1"]
symfony: ["5.4.*", "^6.0"]
sylius: ["^1.12"]
node: ["16.x"]
mysql: ["5.7", "8.0"]
env:
APP_ENV: test
DATABASE_URL: "mysql://root:[email protected]/sylius?serverVersion=${{ matrix.mysql }}"
steps:
-
uses: actions/checkout@v3
- name: Build application
uses: SyliusLabs/[email protected]
with:
build_type: "plugin"
cache_key: "${{ github.run_id }}-${{ runner.os }}-${{ hashFiles('composer.json') }}-sylius-${{ matrix.sylius }}-symfony-${{ matrix.symfony }}"
cache_restore_key: "${{ github.run_id }}-${{ runner.os }}-${{ hashFiles('composer.json') }}-sylius-${{ matrix.sylius }}-symfony-${{ matrix.symfony }}"
e2e: "yes"
e2e_js: "yes"
database_version: ${{ matrix.mysql }}
php_version: ${{ matrix.php }}
symfony_version: ${{ matrix.symfony }}
-
name: Upload logs
uses: actions/upload-artifact@v3
if: failure()
with:
name: Logs
path: |
var/log/
if-no-files-found: ignore