Skip to content

Reconciled notification variables in scripts. #1672

Reconciled notification variables in scripts.

Reconciled notification variables in scripts. #1672

# This action is used for Vortex maintenance. It will not be used in the scaffolded project.
name: Vortex - Test installer
on:
push:
branches:
- develop
pull_request:
branches:
- develop
- 'feature/**'
- 'bugfix/**'
jobs:
vortex-test-installer:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.3', '8.4']
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
- name: Setup PHP
uses: shivammathur/setup-php@bf6b4fbd49ca58e4608c9c89fba0b8d90bd2a39f # v2
with:
php-version: ${{ matrix.php-versions }}
coverage: pcov
ini-values: pcov.directory=.
- name: Setup Node.js
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
with:
node-version: 22.17.1
- name: Set default branch name
run: git config --global init.defaultBranch >/dev/null || git config --global init.defaultBranch "main"
- name: Install dependencies
run: composer install
working-directory: .vortex/installer
- name: Validate Composer configuration is normalized
run: composer normalize --dry-run
working-directory: .vortex/installer
- name: Check coding standards
run: composer lint
working-directory: .vortex/installer
- name: Run tests
run: composer test-coverage
working-directory: .vortex/installer
env:
GITHUB_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
- name: Generate video for installer (not used in the final artifact)
run: |
sudo apt-get update
sudo apt install asciinema expect
npm i -g sharp-cli
yarn install --frozen-lockfile
./.utils/update-installer-video.sh
working-directory: .vortex/docs
- name: Upload coverage reports as an artifact
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
with:
name: ${{github.job}}-code-coverage-report-${{ matrix.php-versions }}
path: .vortex/installer/.logs
include-hidden-files: true
if-no-files-found: error
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5
with:
files: .vortex/installer/.logs/cobertura.xml
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
# Smoke test for PHAR.
- name: Build PHAR
run: composer build
working-directory: .vortex/installer
- name: Test PHAR
run: ./build/installer.phar --no-interaction example || exit 1
working-directory: .vortex/installer
env:
GITHUB_TOKEN: ${{ secrets.PACKAGE_TOKEN }}