feat: implement e2e tests #22
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: Meta | |
on: | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
app-zip: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/check-manifest | |
- uses: shopware/github-actions/build-zip@main | |
with: | |
extensionName: SwagBraintreeApp | |
manifest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-php | |
- uses: ./.github/actions/check-manifest | |
- name: Generate manifest.xml | |
run: composer setup:manifest -- -f --env=prod | |
- uses: ./.github/actions/check-manifest | |
- name: Check manifest.xml | |
run: | | |
git update-index --refresh || printf '' | |
git diff-index "${{ github.sha }}" --quiet -- manifest.xml || (echo "Please run 'composer setup:manifest' to sync the manifest.xml" && exit 1) | |
doctrine: | |
runs-on: ubuntu-latest | |
services: | |
mariadb: | |
image: mariadb:10.5 | |
env: | |
MARIADB_ROOT_PASSWORD: swagbraintree | |
MYSQL_DATABASE: swagbraintree | |
ports: ['3306:3306'] | |
env: | |
DATABASE_URL: mysql://root:[email protected]:3306/swagbraintree | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-php | |
- name: Migrate database | |
run: bin/console doctrine:migrations:migrate --no-interaction | |
- name: Validate doctrine schema | |
run: bin/console doctrine:schema:validate --verbose |