Build, deploy & check Upstream Nightly #667
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: Build, deploy & check Upstream Nightly | |
on: | |
schedule: | |
# * is a special character in YAML so you have to quote this string | |
- cron: '20 10 * * *' | |
workflow_dispatch: | |
inputs: | |
composer_cache_dir: | |
description: A key to version the composer cache. Can be incremented if you need to bust the cache. | |
required: false | |
default: '' | |
jobs: | |
deploy: | |
uses: ./.github/workflows/deploy.yml | |
name: "generate & deploy" | |
with: | |
repo: https://upstream-nightly.mage-os.org | |
remote_dir: /var/www/upstream-nightly.mage-os.org/html/ | |
entrypoint: src/make/upstream-nightly.js | |
delete: false | |
secrets: | |
SERVER_SSH_KEY: ${{ secrets.SERVER_SSH_KEY }} | |
REMOTE_USER: ${{ secrets.REMOTE_USER }} | |
compute-nightly-service-versions: | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.supported-version.outputs.matrix }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: mage-os/github-actions/supported-version@main | |
with: | |
kind: nightly | |
id: supported-version | |
integration-check: | |
needs: [deploy, compute-nightly-service-versions] | |
uses: mage-os/github-actions/.github/workflows/integration.yaml@main | |
with: | |
package_name: mage-os/demo-package | |
use_local_source: false | |
matrix: ${{ needs.compute-nightly-service-versions.outputs.matrix }} | |
test_command: ../../../vendor/bin/phpunit ../../../vendor/mage-os/demo-package/Test/Integration | |
fail-fast: false | |
magento_repository: https://upstream-nightly.mage-os.org | |
composer_cache_key: ${{ inputs.composer_cache_key || 'v1' }} |