mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-08 19:46:41 +00:00
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
name: Installation Test
|
|
|
|
on:
|
|
workflow_dispatch: {}
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "_test/demo-package/**"
|
|
- "installation-test/**"
|
|
- ".github/workflows/_internal-install.yaml"
|
|
- "supported-version/**"
|
|
- "!(**/*.md)"
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "_test/demo-package/**"
|
|
- "installation-test/**"
|
|
- ".github/workflows/_internal-install.yaml"
|
|
- "supported-version/**"
|
|
- "!(**/*.md)"
|
|
|
|
jobs:
|
|
compute_matrix:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
matrix: ${{ steps.supported-version.outputs.matrix }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: ./supported-version
|
|
id: supported-version
|
|
- run: echo ${{ steps.supported-version.outputs.matrix }}
|
|
|
|
install-test:
|
|
needs: compute_matrix
|
|
strategy:
|
|
matrix: ${{ fromJSON(needs.compute_matrix.outputs.matrix) }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: ./installation-test
|
|
with:
|
|
composer_version: ${{ matrix.composer }}
|
|
php_version: ${{ matrix.php }}
|
|
magento_version: ${{ matrix.magento }}
|
|
composer_auth: ${{ secrets.COMPOSER_AUTH }}
|
|
package_name: graycore/magento2-demo-package
|
|
source_folder: $GITHUB_WORKSPACE/_test/demo-package |