79 lines
2.9 KiB
YAML
79 lines
2.9 KiB
YAML
name: Test deployment public URL (Linux)
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'start.sh'
|
|
- 'update.sh'
|
|
- 'docker-compose.yml'
|
|
- 'easyai-proxy.conf.sample'
|
|
- 'scripts/*infrastructure*.sh'
|
|
- 'scripts/*Infrastructure*.ps1'
|
|
- 'scripts/test-infrastructure-auto-update.py'
|
|
- 'scripts/update-env.d/*.env'
|
|
- '.env.sample'
|
|
- 'scripts/init-public-api-base-url.sh'
|
|
- 'scripts/test-public-api-base-url.sh'
|
|
- 'scripts/init-server-http-bind-ip.sh'
|
|
- 'scripts/test-server-http-bind-ip.sh'
|
|
- 'scripts/init-security-env.sh'
|
|
- 'scripts/init-security-origin.sh'
|
|
- 'scripts/check-redis-persistence.sh'
|
|
- 'scripts/test-security-origin.sh'
|
|
- 'scripts/test-redis-persistence-guard.sh'
|
|
- 'scripts/test-deployment-public-url.sh'
|
|
- '.github/workflows/test-deployment-public-url.yml'
|
|
pull_request:
|
|
paths:
|
|
- 'start.sh'
|
|
- 'update.sh'
|
|
- 'docker-compose.yml'
|
|
- 'easyai-proxy.conf.sample'
|
|
- 'scripts/*infrastructure*.sh'
|
|
- 'scripts/*Infrastructure*.ps1'
|
|
- 'scripts/test-infrastructure-auto-update.py'
|
|
- 'scripts/update-env.d/*.env'
|
|
- '.env.sample'
|
|
- 'scripts/init-public-api-base-url.sh'
|
|
- 'scripts/test-public-api-base-url.sh'
|
|
- 'scripts/init-server-http-bind-ip.sh'
|
|
- 'scripts/test-server-http-bind-ip.sh'
|
|
- 'scripts/init-security-env.sh'
|
|
- 'scripts/init-security-origin.sh'
|
|
- 'scripts/check-redis-persistence.sh'
|
|
- 'scripts/test-security-origin.sh'
|
|
- 'scripts/test-redis-persistence-guard.sh'
|
|
- 'scripts/test-deployment-public-url.sh'
|
|
- '.github/workflows/test-deployment-public-url.yml'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test-linux:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Check shell syntax
|
|
run: |
|
|
bash -n start.sh update.sh scripts/init-security-env.sh scripts/init-security-origin.sh scripts/check-redis-persistence.sh scripts/init-public-api-base-url.sh scripts/init-server-http-bind-ip.sh scripts/test-security-origin.sh scripts/test-redis-persistence-guard.sh scripts/test-public-api-base-url.sh scripts/test-server-http-bind-ip.sh scripts/test-deployment-public-url.sh
|
|
|
|
- name: Test migration helper
|
|
run: bash scripts/test-public-api-base-url.sh
|
|
|
|
- name: Test server HTTP bind migration
|
|
run: bash scripts/test-server-http-bind-ip.sh
|
|
|
|
- name: Test startup recovery guards
|
|
run: |
|
|
bash scripts/test-security-origin.sh
|
|
bash scripts/test-redis-persistence-guard.sh
|
|
|
|
- name: Test deployment dry-run matrix
|
|
run: bash scripts/test-deployment-public-url.sh
|
|
|
|
- name: Test automatic Watchtower maintenance
|
|
run: |
|
|
python3 scripts/test-infrastructure-auto-update.py
|
|
pwsh -NoProfile -File scripts/Test-InfrastructureUpdateTask.ps1
|
|
bash scripts/test-update-env-migrations.sh
|