mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-08 19:46:41 +00:00
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
name: Integration Test
|
|
|
|
on:
|
|
workflow_dispatch: {}
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "_test/demo-package/**"
|
|
- ".github/workflows/_internal-integration.yaml"
|
|
- ".github/workflows/integration.yaml"
|
|
- "supported-version/**"
|
|
- "!**/*.md"
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "_test/demo-package/**"
|
|
- ".github/workflows/_internal-integration.yaml"
|
|
- ".github/workflows/integration.yaml"
|
|
- "supported-version/**"
|
|
- "!**/*.md"
|
|
|
|
jobs:
|
|
compute_matrix:
|
|
if: "!startsWith(github.head_ref, 'release-please')"
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
matrix: ${{ steps.supported-version.outputs.matrix }}
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: ./supported-version
|
|
with:
|
|
kind: currently-supported
|
|
id: supported-version
|
|
integration-workflow:
|
|
needs: compute_matrix
|
|
uses: ./.github/workflows/integration.yaml
|
|
with:
|
|
package_name: mage-os/magento2-demo-package
|
|
source_folder: $GITHUB_WORKSPACE/_test/demo-package
|
|
matrix: ${{ needs.compute_matrix.outputs.matrix }}
|
|
test_command: ../../../vendor/bin/phpunit ../../../vendor/mage-os/magento2-demo-package/Test/Integration
|
|
fail-fast: false
|
|
secrets:
|
|
composer_auth: ${{ secrets.COMPOSER_AUTH }}
|