mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-08 19:46:41 +00:00
56 lines
1.5 KiB
YAML
56 lines
1.5 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)"
|
|
|
|
env:
|
|
MAGENTO_COMPOSER_REPO: "https://mirror.mage-os.org/"
|
|
|
|
jobs:
|
|
compute_matrix:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
matrix: ${{ steps.supported-version.outputs.matrix }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: ./supported-version
|
|
with:
|
|
kind: currently-supported
|
|
id: supported-version
|
|
- run: echo ${{ steps.supported-version.outputs.matrix }}
|
|
|
|
install-test:
|
|
needs: compute_matrix
|
|
strategy:
|
|
matrix: ${{ fromJSON(needs.compute_matrix.outputs.matrix) }}
|
|
fail-fast: false
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: ./installation-test
|
|
with:
|
|
composer_version: ${{ matrix.composer }}
|
|
php_version: ${{ matrix.php }}
|
|
magento_version: ${{ matrix.magento }}
|
|
package_name: mage-os/magento2-demo-package
|
|
source_folder: $GITHUB_WORKSPACE/_test/demo-package
|
|
composer_auth: ${{ secrets.COMPOSER_AUTH }}
|
|
magento_repository: ${{ env.MAGENTO_COMPOSER_REPO }} |