Repository navigation
50 lines (42 loc) · 1.86 KB
/
Copy pathframework.yml
File metadata and controls
50 lines (42 loc) · 1.86 KB
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
47
48
49
50
name: framework installation
on:
push:
branches: ['0.4']
pull_request:
branches: ['0.4']
schedule:
- cron: '37 0 * * *'
workflow_dispatch:
permissions:
contents: read
jobs:
resolve:
name: Resolve framework (${{ github.event_name == 'schedule' && 'published' || 'checkout' }})
if: github.event_name != 'schedule' || github.repository == 'hypervel/components'
runs-on: ubuntu-latest
timeout-minutes: 15
container:
image: ghcr.io/hypervel/components-ci:php8.4-swoole-nightly
env:
HYPERVEL_INSTALL_DIR: ${{ github.workspace }}/.tmp/framework-install
COMPOSER_MEMORY_LIMIT: '-1'
steps:
- uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- name: Log trigger context
uses: ./.github/actions/log-trigger-context
- name: Validate metapackage
run: composer validate --strict --no-check-lock src/framework/composer.json
- name: Create a clean project requiring only the framework
run: |
mkdir -p "$HYPERVEL_INSTALL_DIR"
composer --working-dir="$HYPERVEL_INSTALL_DIR" init --name=hypervel/framework-install-check --type=project --license=MIT --require=hypervel/framework:0.4.x-dev --no-interaction
composer --working-dir="$HYPERVEL_INSTALL_DIR" config minimum-stability dev
composer --working-dir="$HYPERVEL_INSTALL_DIR" config prefer-stable true
# Nightly runs check Packagist; PRs, pushes, and manual runs check this commit.
- name: Use the checked-out packages
if: github.event_name != 'schedule'
run: php .github/scripts/use-local-packages.php "$HYPERVEL_INSTALL_DIR" 0.4.x-dev
- name: Resolve runtime dependencies without skeleton or monorepo dev dependencies
run: composer --working-dir="$HYPERVEL_INSTALL_DIR" update --no-install --no-dev --no-interaction --no-progress