-
Notifications
You must be signed in to change notification settings - Fork 13
46 lines (44 loc) · 1.59 KB
/
build-upstream-nightly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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' }}