Files
FOSSBilling/.github/workflows/live-tests.yml
T

49 lines
1.5 KiB
YAML

name: Live Tests
on:
workflow_call:
jobs:
live-tests:
name: 'Live Tests'
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: 'Checkout Repository'
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
persist-credentials: false
- name: 'Set up Docker Compose'
uses: docker/setup-compose-action@4eb059ff7f16592f9c84d5ca339c53cb7c5064e2 # v2.3.0
# Reuses the image already built once in the PHP Build and Test (8.5) job.
- name: 'Download Test Image Artifact'
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: test-image-8.5.tar.zst
path: /tmp
- name: 'Load Test Image'
id: build
run: zstd --decompress --stdout /tmp/test-image-8.5.tar.zst | docker load
- name: 'Run Live Tests'
id: live_tests
run: bash ./.github/scripts/run-docker-live-tests.sh fossbilling:test-8.5
- name: 'Write Job Summary'
if: always()
run: |
cat >> "${GITHUB_STEP_SUMMARY}" <<'EOF'
## Live Tests
| Item | Value |
| --- | --- |
| Test image | `fossbilling:test-8.5` (shared artifact) |
| PHP version | `8.5` |
| Compose file | `.github/docker/live-tests.compose.yml` |
| Image load | `${{ steps.build.outcome }}` |
| Live tests | `${{ steps.live_tests.outcome }}` |
EOF