mirror of
https://github.com/AstrBotDevs/AstrBot.git
synced 2026-11-24 15:18:53 +08:00
* feat(install): add multilingual setup and mainland China mirrors * fix(install): support PowerShell 5.1 and Invoke-Expression * fix(install): support BOM-free PowerShell pipeline execution * fix(install): configure UTF-8 console output * fix(install): set Windows console code page internally * fix(install): keep IEX bootstrap menu ASCII-only * fix(install): default language selection to English * test(install): cover language source defaults * fix(test): escape PowerShell assertion patterns * fix(install): restore localized language menu * fix(install): list English as first language * fix(install): put English first in language prompt * feat(install): add indented AstrBot installer header * fix(install): apply indentation consistently * feat(install): show AstrBot startup commands * docs(install): clarify AstrBot startup steps * feat(install): fall back from Python mirror * fix(install): keep Windows setup in one console * ci: run install tests in fixed shells * fix(install): tolerate a removed current directory * docs: simplify script deployment instructions * fix(install): align Bash wizard with PowerShell flow * fix(install): refresh shell before manual startup * docs: rename deployment sidebar entries * fix: restore PowerShell 5.1 installer compatibility * test: isolate reboot thread mock from asyncio executor * test: shorten long prompt IDs for Windows * fix: keep completed traces closed when update timestamps collide
55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
name: Test install scripts
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- 'docs/public/install.ps1'
|
|
- 'docs/public/install.sh'
|
|
- 'tests/test_install_script.py'
|
|
- 'tests/install_script.Tests.ps1'
|
|
- '.github/workflows/install_script_test.yml'
|
|
pull_request:
|
|
paths:
|
|
- 'docs/public/install.ps1'
|
|
- 'docs/public/install.sh'
|
|
- 'tests/test_install_script.py'
|
|
- 'tests/install_script.Tests.ps1'
|
|
- '.github/workflows/install_script_test.yml'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
name: Windows PowerShell compatibility
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Test Windows PowerShell 5.1
|
|
shell: powershell
|
|
run: .\tests\install_script.Tests.ps1
|
|
|
|
- name: Test PowerShell 7
|
|
shell: pwsh
|
|
run: .\tests\install_script.Tests.ps1
|
|
|
|
shell:
|
|
name: Bash installer (${{ matrix.os }})
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Test Bash installer
|
|
shell: bash
|
|
run: |
|
|
/bin/bash -n docs/public/install.sh
|
|
python3 tests/test_install_script.py
|