test example workflow

This commit is contained in:
missytake
2026-03-10 13:33:35 +01:00
parent 65b6eebdce
commit 8d08b98eda

View File

@@ -12,13 +12,9 @@ on:
- 'LICENSE' - 'LICENSE'
jobs: jobs:
allocate:
uses: chatmail/hetzner-relay/.github/workflows/allocate.yml@main
deploy-and-test: deploy-and-test:
name: deploy on allocated VPS, and run tests name: deploy on allocated VPS, and run tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: allocate
timeout-minutes: 15 timeout-minutes: 15
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -42,11 +38,9 @@ jobs:
- run: | - run: |
git clone https://github.com/chatmail/hetzner-relay ../hetzner-relay git clone https://github.com/chatmail/hetzner-relay ../hetzner-relay
pip install ../hetzner-relay pip install ../hetzner-relay
python3 ../hetzner-relay/main.py --dns --test --vps ${{ needs.allocate.outputs.vps_name }} --run-id $GITHUB_RUN_ID --domain2 chatmail-ci.testrun.org . #python3 ../hetzner-relay/main.py --dns --test --vps ${{ needs.allocate.outputs.vps_name }} --run-id $GITHUB_RUN_ID --domain2 chatmail-ci.testrun.org .
rebuild: test-workflow:
needs: [allocate, deploy-and-test] uses: chatmail/hetzner-relay/.github/workflows/test.yml@main
uses: chatmail/hetzner-relay/.github/workflows/rebuild.yml@main
if: always()
with: with:
vps_name: ${{ needs.allocate.outputs.vps_name }} config_path: test